Documentation ¶
Overview ¶
Package gopredictivenamegenerator generates random or predictive names.
This package is based on the moby namesgenerator package found here: https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameGenerator ¶
type NameGenerator struct {
// contains filtered or unexported fields
}
func New ¶
func New() NameGenerator
func (*NameGenerator) GetPredictive ¶
func (n *NameGenerator) GetPredictive(seedString string) string
GetPredictive gselects a name based off a predetermined seed from the list of adjectives and surnames in this package formatted as "adjective-surname". For example 'focused-turing'.
func (*NameGenerator) GetRandom ¶
func (n *NameGenerator) GetRandom() string
GetRandom generates a random name from the list of adjectives and surnames in this package formatted as "adjective-surname". For example 'focused-turing'.
Click to show internal directories.
Click to hide internal directories.