Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ADJECTIVES ... ADJECTIVES = []string{"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", "summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", "patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", "billowing", "broken", "cold", "damp", "falling", "frosty", "green", "long", "late", "lingering", "bold", "little", "morning", "muddy", "old", "red", "rough", "still", "small", "sparkling", "throbbing", "shy", "wandering", "withered", "wild", "black", "young", "holy", "solitary", "fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", "polished", "ancient", "purple", "lively", "nameless"} // NOUNS ... NOUNS = []string{}/* 11689 elements not displayed */ )
Functions ¶
This section is empty.
Types ¶
type NameGenerator ¶
type NameGenerator struct {
// contains filtered or unexported fields
}
NameGenerator ...
Example ¶
ExampleNameGenerator ...
package main import ( "fmt" "time" "gitee.com/gene-zhao/namegenerator" ) func main() { seed := time.Now().UTC().UnixNano() nameGenerator := namegenerator.NewNameGenerator(seed) name := nameGenerator.Generate() fmt.Println(name)
Output:
func (*NameGenerator) Generate ¶
func (rn *NameGenerator) Generate(names ...string) (rname string)
Generate ...
Click to show internal directories.
Click to hide internal directories.