Documentation ¶
Overview ¶
Package text contains functions needed to generate random sentences.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NounGenerator ¶
type NounGenerator struct {
Nouns []string
}
NounGenerator generates text by concatenating nouns.
func (*NounGenerator) Sentences ¶
func (g *NounGenerator) Sentences(n int) []string
Sentences returns an array of n random sentences.
Click to show internal directories.
Click to hide internal directories.