Documentation
¶
Overview ¶
Package generator encapsulates the structure which is in charge of populating the petname array
Index ¶
Constants ¶
View Source
const ( // NameTemplate is the call value for templating names NameTemplate = "Name" // AdjectiveTemplate is the call value for templating adjectives AdjectiveTemplate = "Adjective" // AdverbTemplate is the call value for templating adverbs AdverbTemplate = "Adverb" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
Name string
Used *cache.Cache
Template *template.Template
Adjectives []string
Adverbs []string
Names []string
AvailableAdv int
AvailableAdj int
AvailableName int
}
Generator encapsulates all functions that allow for the unique generation of a petname
Click to show internal directories.
Click to hide internal directories.