Documentation
¶
Overview ¶
Package generate is for generating random data from given structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignMaxLen ¶
func AssignMaxLen(cfg *Config)
AssignMaxLen sets a maximum length for generated values.
func AssignUseRandomType ¶
func AssignUseRandomType(cfg *Config)
AssignUseRandomType causes generator to generate random types of values.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config stores settings for the generate package.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default configuration for a Generator.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a dsio.EntryReader that creates a new entry on each call to ReadEntry
func NewGenerator ¶
NewGenerator creates a generator with the given configuration options
Click to show internal directories.
Click to hide internal directories.