Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("generator not found") ErrAlreadyExists = fmt.Errorf("generator already exists") )
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { Slug string `bson:"_id"` Name string `bson:"name"` Key string `bson:"key,omitempty"` Template string `bson:"template,omitempty"` Field1 []string `bson:"field1,omitempty"` Field2 []string `bson:"field2,omitempty"` Field3 []string `bson:"field3,omitempty"` Field4 []string `bson:"field4,omitempty"` Field5 []string `bson:"field5,omitempty"` Field6 []string `bson:"field6,omitempty"` // contains filtered or unexported fields }
Generator represents an arbitrary generator
func (*Generator) GenerateNJoined ¶
GenerateNJoined generates a slice of bytes joined by the given separator
func (*Generator) SetGenFunc ¶
Click to show internal directories.
Click to hide internal directories.