Versions in this module Expand all Collapse all v6 v6.18.1 Aug 9, 2022 Changes in this version + func SQL(so *SQLOptions) (string, error) + func Vowel() string type Faker + func (f *Faker) SQL(so *SQLOptions) (string, error) + func (f *Faker) Vowel() string + type SQLOptions struct + Count int + Fields []Field + Table string v6.15.1 Mar 24, 2022 Changes in this version + var FuncLookups map[string]Info + func AchAccount() string + func AchRouting() string + func AddFuncLookup(functionName string, info Info) + func Adjective() string + func AdjectiveDemonstrative() string + func AdjectiveDescriptive() string + func AdjectiveIndefinite() string + func AdjectiveInterrogative() string + func AdjectivePossessive() string + func AdjectiveProper() string + func AdjectiveQuantitative() string + func Adverb() string + func AdverbDegree() string + func AdverbFrequencyDefinite() string + func AdverbFrequencyIndefinite() string + func AdverbManner() string + func AdverbPlace() string + func AdverbTimeDefinite() string + func AdverbTimeIndefinite() string + func Animal() string + func AnimalType() string + func AppAuthor() string + func AppName() string + func AppVersion() string + func BS() string + func BeerAlcohol() string + func BeerBlg() string + func BeerHop() string + func BeerIbu() string + func BeerMalt() string + func BeerName() string + func BeerStyle() string + func BeerYeast() string + func BitcoinAddress() string + func BitcoinPrivateKey() string + func Bool() bool + func Breakfast() string + func BuzzWord() string + func CSV(co *CSVOptions) ([]byte, error) + func CarFuelType() string + func CarMaker() string + func CarModel() string + func CarTransmissionType() string + func CarType() string + func Cat() string + func Categories() map[string][]string + func CelebrityActor() string + func CelebrityBusiness() string + func CelebritySport() string + func ChromeUserAgent() string + func City() string + func Color() string + func Company() string + func CompanySuffix() string + func Connective() string + func ConnectiveCasual() string + func ConnectiveComparitive() string + func ConnectiveComplaint() string + func ConnectiveExamplify() string + func ConnectiveListing() string + func ConnectiveTime() string + func Country() string + func CountryAbr() string + func CreditCardCvv() string + func CreditCardExp() string + func CreditCardNumber(cco *CreditCardOptions) string + func CreditCardType() string + func CurrencyLong() string + func CurrencyShort() string + func Date() time.Time + func DateRange(start, end time.Time) time.Time + func Day() int + func Dessert() string + func Dice(numDice uint, sides []uint) []uint + func Digit() string + func DigitN(n uint) string + func Dinner() string + func Dog() string + func DomainName() string + func DomainSuffix() string + func Email() string + func Emoji() string + func EmojiAlias() string + func EmojiCategory() string + func EmojiDescription() string + func EmojiTag() string + func FarmAnimal() string + func FileExtension() string + func FileMimeType() string + func FirefoxUserAgent() string + func FirstName() string + func FlipACoin() string + func Float32() float32 + func Float32Range(min, max float32) float32 + func Float64() float64 + func Float64Range(min, max float64) float64 + func Fruit() string + func Gamertag() string + func Gender() string + func Generate(dataVal string) string + func HTTPMethod() string + func HTTPStatusCode() int + func HTTPStatusCodeSimple() int + func HTTPVersion() string + func HackerAbbreviation() string + func HackerAdjective() string + func HackerNoun() string + func HackerPhrase() string + func HackerVerb() string + func HackeringVerb() string + func HexColor() string + func HexUint128() string + func HexUint16() string + func HexUint256() string + func HexUint32() string + func HexUint64() string + func HexUint8() string + func HipsterParagraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func HipsterSentence(wordCount int) string + func HipsterWord() string + func Hobby() string + func Hour() int + func IPv4Address() string + func IPv6Address() string + func Image(width int, height int) *img.RGBA + func ImageJpeg(width int, height int) []byte + func ImagePng(width int, height int) []byte + func ImageURL(width int, height int) string + func Int16() int16 + func Int32() int32 + func Int64() int64 + func Int8() int8 + func IntRange(min, max int) int + func JSON(jo *JSONOptions) ([]byte, error) + func JobDescriptor() string + func JobLevel() string + func JobTitle() string + func Language() string + func LanguageAbbreviation() string + func LanguageBCP() string + func LastName() string + func Latitude() float64 + func LatitudeInRange(min, max float64) (float64, error) + func Letter() string + func LetterN(n uint) string + func Lexify(str string) string + func LogLevel(logType string) string + func Longitude() float64 + func LongitudeInRange(min, max float64) (float64, error) + func LoremIpsumParagraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func LoremIpsumSentence(wordCount int) string + func LoremIpsumWord() string + func Lunch() string + func MacAddress() string + func Map() map[string]interface + func MinecraftAnimal() string + func MinecraftArmorPart() string + func MinecraftArmorTier() string + func MinecraftBiome() string + func MinecraftDye() string + func MinecraftFood() string + func MinecraftMobBoss() string + func MinecraftMobHostile() string + func MinecraftMobNeutral() string + func MinecraftMobPassive() string + func MinecraftOre() string + func MinecraftTool() string + func MinecraftVillagerJob() string + func MinecraftVillagerLevel() string + func MinecraftVillagerStation() string + func MinecraftWeapon() string + func MinecraftWeather() string + func MinecraftWood() string + func Minute() int + func Month() int + func MonthString() string + func Name() string + func NamePrefix() string + func NameSuffix() string + func NanoSecond() int + func Noun() string + func NounAbstract() string + func NounCollectiveAnimal() string + func NounCollectivePeople() string + func NounCollectiveThing() string + func NounCommon() string + func NounConcrete() string + func NounCountable() string + func NounProper() string + func NounUncountable() string + func Number(min int, max int) int + func Numerify(str string) string + func OperaUserAgent() string + func Paragraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func Password(lower bool, upper bool, numeric bool, special bool, space bool, num int) string + func PetName() string + func Phone() string + func PhoneFormatted() string + func Phrase() string + func PhraseAdverb() string + func PhraseNoun() string + func PhrasePreposition() string + func PhraseVerb() string + func Preposition() string + func PrepositionCompound() string + func PrepositionDouble() string + func PrepositionSimple() string + func Price(min, max float64) float64 + func ProgrammingLanguage() string + func ProgrammingLanguageBest() string + func Pronoun() string + func PronounDemonstrative() string + func PronounIndefinite() string + func PronounInterrogative() string + func PronounObject() string + func PronounPersonal() string + func PronounPossessive() string + func PronounReflective() string + func PronounRelative() string + func Question() string + func Quote() string + func RGBColor() []int + func RandomInt(i []int) int + func RandomMapKey(mapI interface{}) interface + func RandomString(a []string) string + func RandomUint(u []uint) uint + func Regex(regexStr string) string + func RemoveFuncLookup(functionName string) + func SSN() string + func SafariUserAgent() string + func SafeColor() string + func Second() int + func Seed(seed int64) + func Sentence(wordCount int) string + func SentenceSimple() string + func SetGlobalFaker(faker *Faker) + func ShuffleAnySlice(v interface{}) + func ShuffleInts(a []int) + func ShuffleStrings(a []string) + func Slice(v interface{}) + func Snack() string + func State() string + func StateAbr() string + func Street() string + func StreetName() string + func StreetNumber() string + func StreetPrefix() string + func StreetSuffix() string + func Struct(v interface{}) error + func Teams(peopleArray []string, teamsArray []string) map[string][]string + func TimeZone() string + func TimeZoneAbv() string + func TimeZoneFull() string + func TimeZoneOffset() float32 + func TimeZoneRegion() string + func URL() string + func UUID() string + func Uint16() uint16 + func Uint32() uint32 + func Uint64() uint64 + func Uint8() uint8 + func UintRange(min, max uint) uint + func UserAgent() string + func Username() string + func Vegetable() string + func Verb() string + func VerbAction() string + func VerbHelping() string + func VerbIntransitive() string + func VerbLinking() string + func VerbTransitive() string + func WeekDay() string + func Weighted(options []interface{}, weights []float32) (interface{}, error) + func Word() string + func XML(xo *XMLOptions) ([]byte, error) + func Year() int + func Zip() string + type AddressInfo struct + Address string + City string + Country string + Latitude float64 + Longitude float64 + State string + Street string + Zip string + func Address() *AddressInfo + type CSVOptions struct + Delimiter string + Fields []Field + RowCount int + type CarInfo struct + Brand string + Fuel string + Model string + Transmission string + Type string + Year int + func Car() *CarInfo + type ContactInfo struct + Email string + Phone string + func Contact() *ContactInfo + type CreditCardInfo struct + Cvv string + Exp string + Number string + Type string + func CreditCard() *CreditCardInfo + type CreditCardOptions struct + Bins []string + Gaps bool + Types []string + type CurrencyInfo struct + Long string + Short string + func Currency() *CurrencyInfo + type Faker struct + Rand *rand.Rand + func New(seed int64) *Faker + func NewCrypto() *Faker + func NewCustom(source rand.Source64) *Faker + func NewUnlocked(seed int64) *Faker + func (f *Faker) AchAccount() string + func (f *Faker) AchRouting() string + func (f *Faker) Address() *AddressInfo + func (f *Faker) Adjective() string + func (f *Faker) AdjectiveDemonstrative() string + func (f *Faker) AdjectiveDescriptive() string + func (f *Faker) AdjectiveIndefinite() string + func (f *Faker) AdjectiveInterrogative() string + func (f *Faker) AdjectivePossessive() string + func (f *Faker) AdjectiveProper() string + func (f *Faker) AdjectiveQuantitative() string + func (f *Faker) Adverb() string + func (f *Faker) AdverbDegree() string + func (f *Faker) AdverbFrequencyDefinite() string + func (f *Faker) AdverbFrequencyIndefinite() string + func (f *Faker) AdverbManner() string + func (f *Faker) AdverbPlace() string + func (f *Faker) AdverbTimeDefinite() string + func (f *Faker) AdverbTimeIndefinite() string + func (f *Faker) Animal() string + func (f *Faker) AnimalType() string + func (f *Faker) AppAuthor() string + func (f *Faker) AppName() string + func (f *Faker) AppVersion() string + func (f *Faker) BS() string + func (f *Faker) BeerAlcohol() string + func (f *Faker) BeerBlg() string + func (f *Faker) BeerHop() string + func (f *Faker) BeerIbu() string + func (f *Faker) BeerMalt() string + func (f *Faker) BeerName() string + func (f *Faker) BeerStyle() string + func (f *Faker) BeerYeast() string + func (f *Faker) BitcoinAddress() string + func (f *Faker) BitcoinPrivateKey() string + func (f *Faker) Bool() bool + func (f *Faker) Breakfast() string + func (f *Faker) BuzzWord() string + func (f *Faker) CSV(co *CSVOptions) ([]byte, error) + func (f *Faker) Car() *CarInfo + func (f *Faker) CarFuelType() string + func (f *Faker) CarMaker() string + func (f *Faker) CarModel() string + func (f *Faker) CarTransmissionType() string + func (f *Faker) CarType() string + func (f *Faker) Cat() string + func (f *Faker) CelebrityActor() string + func (f *Faker) CelebrityBusiness() string + func (f *Faker) CelebritySport() string + func (f *Faker) ChromeUserAgent() string + func (f *Faker) City() string + func (f *Faker) Color() string + func (f *Faker) Company() string + func (f *Faker) CompanySuffix() string + func (f *Faker) Connective() string + func (f *Faker) ConnectiveCasual() string + func (f *Faker) ConnectiveComparitive() string + func (f *Faker) ConnectiveComplaint() string + func (f *Faker) ConnectiveExamplify() string + func (f *Faker) ConnectiveListing() string + func (f *Faker) ConnectiveTime() string + func (f *Faker) Contact() *ContactInfo + func (f *Faker) Country() string + func (f *Faker) CountryAbr() string + func (f *Faker) CreditCard() *CreditCardInfo + func (f *Faker) CreditCardCvv() string + func (f *Faker) CreditCardExp() string + func (f *Faker) CreditCardNumber(cco *CreditCardOptions) string + func (f *Faker) CreditCardType() string + func (f *Faker) Currency() *CurrencyInfo + func (f *Faker) CurrencyLong() string + func (f *Faker) CurrencyShort() string + func (f *Faker) Date() time.Time + func (f *Faker) DateRange(start, end time.Time) time.Time + func (f *Faker) Day() int + func (f *Faker) Dessert() string + func (f *Faker) Dice(numDice uint, sides []uint) []uint + func (f *Faker) Digit() string + func (f *Faker) DigitN(n uint) string + func (f *Faker) Dinner() string + func (f *Faker) Dog() string + func (f *Faker) DomainName() string + func (f *Faker) DomainSuffix() string + func (f *Faker) Email() string + func (f *Faker) Emoji() string + func (f *Faker) EmojiAlias() string + func (f *Faker) EmojiCategory() string + func (f *Faker) EmojiDescription() string + func (f *Faker) EmojiTag() string + func (f *Faker) FarmAnimal() string + func (f *Faker) FileExtension() string + func (f *Faker) FileMimeType() string + func (f *Faker) FirefoxUserAgent() string + func (f *Faker) FirstName() string + func (f *Faker) FlipACoin() string + func (f *Faker) Float32() float32 + func (f *Faker) Float32Range(min, max float32) float32 + func (f *Faker) Float64() float64 + func (f *Faker) Float64Range(min, max float64) float64 + func (f *Faker) Fruit() string + func (f *Faker) Gamertag() string + func (f *Faker) Gender() string + func (f *Faker) Generate(dataVal string) string + func (f *Faker) HTTPMethod() string + func (f *Faker) HTTPStatusCode() int + func (f *Faker) HTTPStatusCodeSimple() int + func (f *Faker) HTTPVersion() string + func (f *Faker) HackerAbbreviation() string + func (f *Faker) HackerAdjective() string + func (f *Faker) HackerNoun() string + func (f *Faker) HackerPhrase() string + func (f *Faker) HackerVerb() string + func (f *Faker) HackeringVerb() string + func (f *Faker) HexColor() string + func (f *Faker) HexUint128() string + func (f *Faker) HexUint16() string + func (f *Faker) HexUint256() string + func (f *Faker) HexUint32() string + func (f *Faker) HexUint64() string + func (f *Faker) HexUint8() string + func (f *Faker) HipsterParagraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func (f *Faker) HipsterSentence(wordCount int) string + func (f *Faker) HipsterWord() string + func (f *Faker) Hobby() string + func (f *Faker) Hour() int + func (f *Faker) IPv4Address() string + func (f *Faker) IPv6Address() string + func (f *Faker) Image(width int, height int) *img.RGBA + func (f *Faker) ImageJpeg(width int, height int) []byte + func (f *Faker) ImagePng(width int, height int) []byte + func (f *Faker) ImageURL(width int, height int) string + func (f *Faker) Int16() int16 + func (f *Faker) Int32() int32 + func (f *Faker) Int64() int64 + func (f *Faker) Int8() int8 + func (f *Faker) IntRange(min, max int) int + func (f *Faker) JSON(jo *JSONOptions) ([]byte, error) + func (f *Faker) Job() *JobInfo + func (f *Faker) JobDescriptor() string + func (f *Faker) JobLevel() string + func (f *Faker) JobTitle() string + func (f *Faker) Language() string + func (f *Faker) LanguageAbbreviation() string + func (f *Faker) LanguageBCP() string + func (f *Faker) LastName() string + func (f *Faker) Latitude() float64 + func (f *Faker) LatitudeInRange(min, max float64) (float64, error) + func (f *Faker) Letter() string + func (f *Faker) LetterN(n uint) string + func (f *Faker) Lexify(str string) string + func (f *Faker) LogLevel(logType string) string + func (f *Faker) Longitude() float64 + func (f *Faker) LongitudeInRange(min, max float64) (float64, error) + func (f *Faker) LoremIpsumParagraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func (f *Faker) LoremIpsumSentence(wordCount int) string + func (f *Faker) LoremIpsumWord() string + func (f *Faker) Lunch() string + func (f *Faker) MacAddress() string + func (f *Faker) Map() map[string]interface{} + func (f *Faker) MinecraftAnimal() string + func (f *Faker) MinecraftArmorPart() string + func (f *Faker) MinecraftArmorTier() string + func (f *Faker) MinecraftBiome() string + func (f *Faker) MinecraftDye() string + func (f *Faker) MinecraftFood() string + func (f *Faker) MinecraftMobBoss() string + func (f *Faker) MinecraftMobHostile() string + func (f *Faker) MinecraftMobNeutral() string + func (f *Faker) MinecraftMobPassive() string + func (f *Faker) MinecraftOre() string + func (f *Faker) MinecraftTool() string + func (f *Faker) MinecraftVillagerJob() string + func (f *Faker) MinecraftVillagerLevel() string + func (f *Faker) MinecraftVillagerStation() string + func (f *Faker) MinecraftWeapon() string + func (f *Faker) MinecraftWeather() string + func (f *Faker) MinecraftWood() string + func (f *Faker) Minute() int + func (f *Faker) Month() int + func (f *Faker) MonthString() string + func (f *Faker) Name() string + func (f *Faker) NamePrefix() string + func (f *Faker) NameSuffix() string + func (f *Faker) NanoSecond() int + func (f *Faker) Noun() string + func (f *Faker) NounAbstract() string + func (f *Faker) NounCollectiveAnimal() string + func (f *Faker) NounCollectivePeople() string + func (f *Faker) NounCollectiveThing() string + func (f *Faker) NounCommon() string + func (f *Faker) NounConcrete() string + func (f *Faker) NounCountable() string + func (f *Faker) NounProper() string + func (f *Faker) NounUncountable() string + func (f *Faker) Number(min int, max int) int + func (f *Faker) Numerify(str string) string + func (f *Faker) OperaUserAgent() string + func (f *Faker) Paragraph(paragraphCount int, sentenceCount int, wordCount int, separator string) string + func (f *Faker) Password(lower bool, upper bool, numeric bool, special bool, space bool, num int) string + func (f *Faker) Person() *PersonInfo + func (f *Faker) PetName() string + func (f *Faker) Phone() string + func (f *Faker) PhoneFormatted() string + func (f *Faker) Phrase() string + func (f *Faker) PhraseAdverb() string + func (f *Faker) PhraseNoun() string + func (f *Faker) PhrasePreposition() string + func (f *Faker) PhraseVerb() string + func (f *Faker) Preposition() string + func (f *Faker) PrepositionCompound() string + func (f *Faker) PrepositionDouble() string + func (f *Faker) PrepositionSimple() string + func (f *Faker) Price(min, max float64) float64 + func (f *Faker) ProgrammingLanguage() string + func (f *Faker) ProgrammingLanguageBest() string + func (f *Faker) Pronoun() string + func (f *Faker) PronounDemonstrative() string + func (f *Faker) PronounIndefinite() string + func (f *Faker) PronounInterrogative() string + func (f *Faker) PronounObject() string + func (f *Faker) PronounPersonal() string + func (f *Faker) PronounPossessive() string + func (f *Faker) PronounReflective() string + func (f *Faker) PronounRelative() string + func (f *Faker) Question() string + func (f *Faker) Quote() string + func (f *Faker) RGBColor() []int + func (f *Faker) RandomInt(i []int) int + func (f *Faker) RandomMapKey(mapI interface{}) interface{} + func (f *Faker) RandomString(a []string) string + func (f *Faker) RandomUint(u []uint) uint + func (f *Faker) Regex(regexStr string) string + func (f *Faker) SSN() string + func (f *Faker) SafariUserAgent() string + func (f *Faker) SafeColor() string + func (f *Faker) Second() int + func (f *Faker) Sentence(wordCount int) string + func (f *Faker) SentenceSimple() string + func (f *Faker) ShuffleAnySlice(v interface{}) + func (f *Faker) ShuffleInts(a []int) + func (f *Faker) ShuffleStrings(a []string) + func (f *Faker) Slice(v interface{}) + func (f *Faker) Snack() string + func (f *Faker) State() string + func (f *Faker) StateAbr() string + func (f *Faker) Street() string + func (f *Faker) StreetName() string + func (f *Faker) StreetNumber() string + func (f *Faker) StreetPrefix() string + func (f *Faker) StreetSuffix() string + func (f *Faker) Struct(v interface{}) error + func (f *Faker) Teams(peopleArray []string, teamsArray []string) map[string][]string + func (f *Faker) TimeZone() string + func (f *Faker) TimeZoneAbv() string + func (f *Faker) TimeZoneFull() string + func (f *Faker) TimeZoneOffset() float32 + func (f *Faker) TimeZoneRegion() string + func (f *Faker) URL() string + func (f *Faker) UUID() string + func (f *Faker) Uint16() uint16 + func (f *Faker) Uint32() uint32 + func (f *Faker) Uint64() uint64 + func (f *Faker) Uint8() uint8 + func (f *Faker) UintRange(min, max uint) uint + func (f *Faker) UserAgent() string + func (f *Faker) Username() string + func (f *Faker) Vegetable() string + func (f *Faker) Verb() string + func (f *Faker) VerbAction() string + func (f *Faker) VerbHelping() string + func (f *Faker) VerbIntransitive() string + func (f *Faker) VerbLinking() string + func (f *Faker) VerbTransitive() string + func (f *Faker) WeekDay() string + func (f *Faker) Weighted(options []interface{}, weights []float32) (interface{}, error) + func (f *Faker) Word() string + func (f *Faker) XML(xo *XMLOptions) ([]byte, error) + func (f *Faker) Year() int + func (f *Faker) Zip() string + type Field struct + Function string + Name string + Params MapParams + type Info struct + Category string + ContentType string + Description string + Display string + Example string + Generate func(r *rand.Rand, m *MapParams, info *Info) (interface{}, error) + Output string + Params []Param + func GetFuncLookup(functionName string) *Info + func (i *Info) GetBool(m *MapParams, field string) (bool, error) + func (i *Info) GetField(m *MapParams, field string) (*Param, []string, error) + func (i *Info) GetFloat32(m *MapParams, field string) (float32, error) + func (i *Info) GetFloat32Array(m *MapParams, field string) ([]float32, error) + func (i *Info) GetFloat64(m *MapParams, field string) (float64, error) + func (i *Info) GetInt(m *MapParams, field string) (int, error) + func (i *Info) GetIntArray(m *MapParams, field string) ([]int, error) + func (i *Info) GetString(m *MapParams, field string) (string, error) + func (i *Info) GetStringArray(m *MapParams, field string) ([]string, error) + func (i *Info) GetUint(m *MapParams, field string) (uint, error) + func (i *Info) GetUintArray(m *MapParams, field string) ([]uint, error) + type JSONOptions struct + Fields []Field + Indent bool + RowCount int + Type string + type JobInfo struct + Company string + Descriptor string + Level string + Title string + func Job() *JobInfo + type MapParams map[string]MapParamsValue + func NewMapParams() *MapParams + func (m *MapParams) Add(field string, value string) + func (m *MapParams) Get(field string) []string + func (m *MapParams) Size() int + type MapParamsValue []string + func (m *MapParamsValue) UnmarshalJSON(data []byte) error + type Param struct + Default string + Description string + Display string + Field string + Optional bool + Options []string + Type string + type PersonInfo struct + Address *AddressInfo + Contact *ContactInfo + CreditCard *CreditCardInfo + FirstName string + Gender string + Hobby string + Image string + Job *JobInfo + LastName string + SSN string + func Person() *PersonInfo + type XMLOptions struct + Fields []Field + Indent bool + RecordElement string + RootElement string + RowCount int + Type string Other modules containing this package github.com/simon0-o/gofakeit