randpoem

package
v0.0.0-...-f1c68f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed poetryTang.txt.gz
	PoetryTangTxtGz []byte

	//go:embed shijing.txt.gz
	ShijingTxtGz []byte

	//go:embed songci.txt.gz
	SongciTxtGz []byte

	PoetryTangsLines = UnGzipLines(PoetryTangTxtGz)
	ShijingLines     = UnGzipLines(ShijingTxtGz)
	SongciLines      = UnGzipLines(SongciTxtGz)
)

Functions

func MustUnGzip

func MustUnGzip(input []byte) []byte

func RandPoetryTang

func RandPoetryTang() string

func RandShijing

func RandShijing() string

func RandSongci

func RandSongci() string

func SliceRandItem

func SliceRandItem(data []string) string

func UnGzip

func UnGzip(input []byte) ([]byte, error)

func UnGzipLines

func UnGzipLines(input []byte) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL