Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ADJECTIVES ... ADJECTIVES = []string{}/* 1295 elements not displayed */ // NOUNS ... NOUNS = []string{}/* 6769 elements not displayed */ )
Functions ¶
func GetMaxNames ¶
func GetMaxNames() int
Types ¶
type NameGenerator ¶
type NameGenerator struct {
// contains filtered or unexported fields
}
NameGenerator ...
Example ¶
ExampleNameGenerator ...
package main import ( "fmt" "time" "github.com/Distortions81/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() string
Click to show internal directories.
Click to hide internal directories.