Versions in this module Expand all Collapse all v1 v1.0.2 May 30, 2023 Changes in this version + func FakeValue(faker Source, sc *StringConstraint, nc *NumericConstraint, ...) string + type GeneralConstraint struct + SkipChance float64 + func (gc *GeneralConstraint) Validate() error + type NumericConstraint struct + Max float64 + Min float64 + func (nc *NumericConstraint) Validate() error + type Source string + var AllSources = []Source{ ... } + var TypeBeerName Source = "BEER_NAME" + var TypeBeerStyle Source = "BEER_STYLE" + var TypeBool Source = "BOOL" + var TypeCity Source = "CITY" + var TypeCompany Source = "COMPANY" + var TypeCountry Source = "COUNTRY" + var TypeEmail Source = "EMAIL" + var TypeFirstName Source = "FIRST_NAME" + var TypeInt Source = "INTEGER" + var TypeLastName Source = "LAST_NAME" + var TypeMonth Source = "MONTH" + var TypePhone Source = "PHONE" + var TypeState Source = "STATE" + var TypeStreet Source = "STREET" + var TypeString Source = "STRING" + var TypeTimestamp Source = "TIMESTAMP" + var TypeUUID Source = "UUID" + var TypeYesNo Source = "YES_NO" + var TypeZip Source = "ZIP" + type StringConstraint struct + OneOf []string + Regex string + func (sc *StringConstraint) Validate() error + type TimestampConstraint struct + End time.Time + Format string + Start time.Time + func (tc *TimestampConstraint) Validate() error