Versions in this module Expand all Collapse all v1 v1.0.0 Aug 16, 2022 Changes in this version + const AmountTag + const AmountWithCurrencyTag + const BaseDateFormat + const BoundaryEnd + const BoundaryStart + const CENTURY + const ChineseFirstNameTag + const ChineseLastNameTag + const ChineseNameTag + const CreditCardNumber + const CreditCardType + const CurrencyTag + const DATE + const DayFormat + const DayOfMonthFormat + const DayOfMonthTag + const DayOfWeekTag + const DomainNameTag + const E164PhoneNumberTag + const EmailTag + const Equals + const FirstNameFemaleTag + const FirstNameMaleTag + const FirstNameTag + const GENDER + const HyphenatedID + const ID + const IPV4Tag + const IPV6Tag + const JWT + const LATITUDE + const LONGITUDE + const Language + const LastNameTag + const Length + const MacAddressTag + const MonthFormat + const MonthNameTag + const NAME + const ONEOF + const PARAGRAPH + const PASSWORD + const PhoneNumber + const SENTENCE + const SKIP + const SliceLength + const TIME + const TIMESTAMP + const TIMEZONE + const TimeFormat + const TimePeriodFormat + const TimePeriodTag + const TitleFemaleTag + const TitleMaleTag + const TollFreeNumber + const URLTag + const UnixTimeTag + const UserNameTag + const WORD + const YEAR + const YearFormat + var EmotEMJ = langRuneBoundary + var ErrDuplicateSeparator = "Duplicate separator for tag arguments." + var ErrMoreArguments = "Passed more arguments than is possible : (%d)" + var ErrNotEnoughTagArguments = "Not enough arguments for tag." + var ErrNotSupportedPointer = "Use sample:=new(%s)\n faker.FakeData(sample) instead" + var ErrNotSupportedTypeForTag = "Type is not supported by tag." + var ErrSmallerThanOne = "Size:%d is smaller than one." + var ErrSmallerThanZero = "Size:%d is smaller than zero." + var ErrStartValueBiggerThanEnd = "Start value can not be bigger than end value." + var ErrTagAlreadyExists = "Tag exists" + var ErrTagDoesNotExist = "Tag does not exist" + var ErrTagNotSupported = "Tag unsupported: %s" + var ErrUniqueFailure = "Failed to generate a unique value for field \"%s\"" + var ErrUnknownType = "Unknown Type" + var ErrUnsupportedKind = "Unsupported kind: %s" + var ErrUnsupportedKindPtr = "Unsupported kind: %s Change Without using * (pointer) in Field of %s" + var ErrUnsupportedNumberType = "Unsupported Number type." + var ErrUnsupportedTagArguments = "Tag arguments are not compatible with field type." + var ErrValueNotPtr = "Not a pointer value" + var ErrWrongFormattedTag = "Tag \"%s\" is not written properly" + var LangCHI = langRuneBoundary + var LangENG = langRuneBoundary + var LangJPN = langRuneBoundary + var LangKOR = langRuneBoundary + var LangRUS = langRuneBoundary + var PriorityTags = []string + func AddProvider(tag string, provider TaggedFunction) error + func AmountWithCurrency() string + func CCNumber() string + func CCType() string + func Century() string + func ChineseFirstName() string + func ChineseLastName() string + func ChineseName() string + func Currency() string + func Date() string + func DayOfMonth() string + func DayOfWeek() string + func DomainName() string + func E164PhoneNumber() string + func Email() string + func FakeData(a interface{}, opt ...OptionFunc) error + func FirstName() string + func FirstNameFemale() string + func FirstNameMale() string + func Gender() string + func IPv4() string + func IPv6() string + func Jwt() string + func LastName() string + func Latitude() float64 + func Longitude() float64 + func MacAddress() string + func MonthName() string + func Name() string + func NewSafeSource(in mathrand.Source) mathrand.Source + func Paragraph() string + func Password() string + func Phonenumber() string + func RandomInt(parameters ...int) (p []int, err error) + func RandomUnixTime() int64 + func RemoveProvider(tag string) error + func ResetUnique() + func Sentence() string + func SetAddress(net Addresser) + func SetCryptoSource(in io.Reader) + func SetDataFaker(d DataFaker) + func SetDateTimer(d DateTimer) + func SetDowser(d Dowser) + func SetGenerateUniqueValues(unique bool) + func SetIgnoreInterface(ignore bool) + func SetNetwork(net Networker) + func SetNilIfLenIsZero(setNil bool) + func SetPayment(p Render) + func SetPhoner(p Phoner) + func SetPrice(p Money) + func SetRandomMapAndSliceMaxSize(size int) error + func SetRandomMapAndSliceMinSize(size int) error + func SetRandomMapAndSliceSize(size int) error + func SetRandomNumberBoundaries(start, end int) error + func SetRandomSource(in mathrand.Source) + func SetRandomStringLength(size int) error + func SetStringLang(l langRuneBoundary) + func TimeString() string + func Timeperiod() string + func Timestamp() string + func Timezone() string + func TitleFemale() string + func TitleMale() string + func TollFreePhoneNumber() string + func URL() string + func UUIDDigit() string + func UUIDHyphenated() string + func UnixTime() int64 + func Username() string + func Word() string + func YearString() string + type Address struct + func (i Address) Latitude(v reflect.Value) (interface{}, error) + func (i Address) Longitude(v reflect.Value) (interface{}, error) + type Addresser interface + Latitude func(v reflect.Value) (interface{}, error) + Longitude func(v reflect.Value) (interface{}, error) + func GetAddress() Addresser + type CustomProviderFunction func() (interface{}, error) + type DataFaker interface + Paragraph func(v reflect.Value) (interface{}, error) + Sentence func(v reflect.Value) (interface{}, error) + Word func(v reflect.Value) (interface{}, error) + func GetLorem() DataFaker + type DateTime struct + func (d DateTime) Century(v reflect.Value) (interface{}, error) + func (d DateTime) Date(v reflect.Value) (interface{}, error) + func (d DateTime) DayOfMonth(v reflect.Value) (interface{}, error) + func (d DateTime) DayOfWeek(v reflect.Value) (interface{}, error) + func (d DateTime) MonthName(v reflect.Value) (interface{}, error) + func (d DateTime) Time(v reflect.Value) (interface{}, error) + func (d DateTime) TimePeriod(v reflect.Value) (interface{}, error) + func (d DateTime) TimeZone(v reflect.Value) (interface{}, error) + func (d DateTime) Timestamp(v reflect.Value) (interface{}, error) + func (d DateTime) UnixTime(v reflect.Value) (interface{}, error) + func (d DateTime) Year(v reflect.Value) (interface{}, error) + type DateTimer interface + Century func(v reflect.Value) (interface{}, error) + Date func(v reflect.Value) (interface{}, error) + DayOfMonth func(v reflect.Value) (interface{}, error) + DayOfWeek func(v reflect.Value) (interface{}, error) + MonthName func(v reflect.Value) (interface{}, error) + Time func(v reflect.Value) (interface{}, error) + TimePeriod func(v reflect.Value) (interface{}, error) + TimeZone func(v reflect.Value) (interface{}, error) + Timestamp func(v reflect.Value) (interface{}, error) + UnixTime func(v reflect.Value) (interface{}, error) + Year func(v reflect.Value) (interface{}, error) + func GetDateTimer() DateTimer + type Dowser interface + ChineseFirstName func(v reflect.Value) (interface{}, error) + ChineseLastName func(v reflect.Value) (interface{}, error) + ChineseName func(v reflect.Value) (interface{}, error) + FirstName func(v reflect.Value) (interface{}, error) + FirstNameFemale func(v reflect.Value) (interface{}, error) + FirstNameMale func(v reflect.Value) (interface{}, error) + Gender func(v reflect.Value) (interface{}, error) + LastName func(v reflect.Value) (interface{}, error) + Name func(v reflect.Value) (interface{}, error) + TitleFeMale func(v reflect.Value) (interface{}, error) + TitleMale func(v reflect.Value) (interface{}, error) + func GetPerson() Dowser + type Identifier interface + Digit func(v reflect.Value) (interface{}, error) + Hyphenated func(v reflect.Value) (interface{}, error) + func GetIdentifier() Identifier + type Internet struct + func (internet Internet) DomainName(v reflect.Value) (interface{}, error) + func (internet Internet) Email(v reflect.Value) (interface{}, error) + func (internet Internet) IPv4(v reflect.Value) (interface{}, error) + func (internet Internet) IPv6(v reflect.Value) (interface{}, error) + func (internet Internet) Jwt(v reflect.Value) (interface{}, error) + func (internet Internet) MacAddress(v reflect.Value) (interface{}, error) + func (internet Internet) Password(v reflect.Value) (interface{}, error) + func (internet Internet) URL(v reflect.Value) (interface{}, error) + func (internet Internet) UserName(v reflect.Value) (interface{}, error) + type Lorem struct + func (l Lorem) Paragraph(v reflect.Value) (interface{}, error) + func (l Lorem) Sentence(v reflect.Value) (interface{}, error) + func (l Lorem) Word(v reflect.Value) (interface{}, error) + type Money interface + Amount func(v reflect.Value) (interface{}, error) + AmountWithCurrency func(v reflect.Value) (interface{}, error) + Currency func(v reflect.Value) (interface{}, error) + func GetPrice() Money + type Networker interface + DomainName func(v reflect.Value) (interface{}, error) + Email func(v reflect.Value) (interface{}, error) + IPv4 func(v reflect.Value) (interface{}, error) + IPv6 func(v reflect.Value) (interface{}, error) + Jwt func(v reflect.Value) (interface{}, error) + MacAddress func(v reflect.Value) (interface{}, error) + Password func(v reflect.Value) (interface{}, error) + URL func(v reflect.Value) (interface{}, error) + UserName func(v reflect.Value) (interface{}, error) + func GetNetworker() Networker + type OptionFunc func(oo *options) + func WithCustomFieldProvider(fieldName string, provider CustomProviderFunction) OptionFunc + func WithFieldsToIgnore(fieldNames ...string) OptionFunc + type Payment struct + func (p Payment) CreditCardNumber(v reflect.Value) (interface{}, error) + func (p Payment) CreditCardType(v reflect.Value) (interface{}, error) + type Person struct + func (p Person) ChineseFirstName(v reflect.Value) (interface{}, error) + func (p Person) ChineseLastName(v reflect.Value) (interface{}, error) + func (p Person) ChineseName(v reflect.Value) (interface{}, error) + func (p Person) FirstName(v reflect.Value) (interface{}, error) + func (p Person) FirstNameFemale(v reflect.Value) (interface{}, error) + func (p Person) FirstNameMale(v reflect.Value) (interface{}, error) + func (p Person) Gender(v reflect.Value) (interface{}, error) + func (p Person) LastName(v reflect.Value) (interface{}, error) + func (p Person) Name(v reflect.Value) (interface{}, error) + func (p Person) TitleFeMale(v reflect.Value) (interface{}, error) + func (p Person) TitleMale(v reflect.Value) (interface{}, error) + type Phone struct + func (p Phone) E164PhoneNumber(v reflect.Value) (interface{}, error) + func (p Phone) PhoneNumber(v reflect.Value) (interface{}, error) + func (p Phone) TollFreePhoneNumber(v reflect.Value) (interface{}, error) + type Phoner interface + E164PhoneNumber func(v reflect.Value) (interface{}, error) + PhoneNumber func(v reflect.Value) (interface{}, error) + TollFreePhoneNumber func(v reflect.Value) (interface{}, error) + func GetPhoner() Phoner + type Price struct + func (p Price) Amount(v reflect.Value) (interface{}, error) + func (p Price) AmountWithCurrency(v reflect.Value) (interface{}, error) + func (p Price) Currency(v reflect.Value) (interface{}, error) + type Render interface + CreditCardNumber func(v reflect.Value) (interface{}, error) + CreditCardType func(v reflect.Value) (interface{}, error) + func GetPayment() Render + type TaggedFunction func(v reflect.Value) (interface{}, error) + type UUID struct + func (u UUID) Digit(v reflect.Value) (interface{}, error) + func (u UUID) Hyphenated(v reflect.Value) (interface{}, error)