Versions in this module Expand all Collapse all v1 v1.1.0 Mar 22, 2023 Changes in this version + type User struct + DOB interface{} + Name interface{} + Phone interface{} + Score interface{} + TaxPercent interface{} + func SomeOne(template UserTemplate) *User + func (user *User) WithDOB(condition string) *User + func (user *User) WithName(condition string) *User + func (user *User) WithPhonePrefix(regex string) *User + func (user *User) WithScore(condition string) *User + func (user *User) WithTaxPercent(condition string) *User + type UserTemplate struct + DOB X + Name X + Phone X + Score X + TaxPercent X + func NewSampleTemplate() UserTemplate + type X interface + BindOperator func(expression string) XOP + Random func(expression string) interface{} + SetFallback func(value interface{}) + func NewXNumber(min, max, step float64) X + func NewXRegex() X + func NewXTime(min, max time.Time, step time.Duration) X + func NewXWords(sourcePath string) X + type XNumber struct + func (xn *XNumber) SetFallback(value interface{}) + func (xn XNumber) BindOperator(expression string) XOP + func (xn XNumber) Random(condition string) interface{} + type XOP int + const Any + const Begin + const Constant + const End + const FindX + const FindXs + const Invalid + const Length + const Regex + const Unknown + func (op XOP) String() string + type XRegex struct + func (xr *XRegex) SetFallback(defaultRegex interface{}) + func (xr XRegex) BindOperator(regex string) XOP + func (xr XRegex) Random(regex string) interface{} + type XTime struct + func (xt *XTime) SetFallback(value interface{}) + func (xt XTime) BindOperator(expression string) XOP + func (xt XTime) Random(expression string) interface{} + type XWords struct + func (xw *XWords) SetFallback(fallback interface{}) + func (xw XWords) BindOperator(expression string) XOP + func (xw XWords) Random(xExpression string) interface{}