Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ Rand: NewRand(), FloatPrecision: 2, NumericBound: 1 << 16, }
Functions ¶
func Fake ¶
Fake generates fake data for a given cue definition. The returning cue.Value can be decoded into the corresponding Go type. For example, if the cue definition represents a string, the returning value can be decoded into a Go string. Likewise, for maps, we can decode into a map[string]interface{}.
Types ¶
type Constraint ¶
type Constraint struct { Rule Rule Value interface{} }
Constraint represents a single constraint for the generator.
func (Constraint) String ¶
func (c Constraint) String() string
Click to show internal directories.
Click to hide internal directories.