Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Builtins = []Builtin{ None, AmericanMale, AmericanFemale, AmericanLast, UnweightedAmericanMale, UnweightedAmericanFemale, UnweightedAmericanLast, }
Builtins holds all possible values.
View Source
var Types = []Type{ Simple, MarkovLetter, MarkovRun, Compound, }
Types holds all possible values.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin byte
Builtin holds a built-in name data type.
const ( None Builtin = iota AmericanMale AmericanFemale AmericanLast UnweightedAmericanMale UnweightedAmericanFemale UnweightedAmericanLast )
Possible values.
const LastBuiltin Builtin = UnweightedAmericanLast
LastBuiltin is the last valid value.
func ExtractBuiltin ¶
ExtractBuiltin extracts the value from a string.
func (Builtin) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Builtin) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Builtin) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Type ¶
type Type byte
Type holds a name generation type.
func (Type) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Type) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Type) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.