MCPcopy Create free account

hub / github.com/icrowley/fake / functions

Functions157 in github.com/icrowley/fake

↓ 38 callersFunctionlookup
(lang, cat string, fallback bool)
fake.go:163
↓ 16 callersFunctionSetLang
SetLang sets the language in which the data should be generated returns error if passed language is not available
fake.go:106
↓ 13 callersFunctionGetLangs
GetLangs returns a slice of available languages
fake.go:94
↓ 7 callersFunctionfullNameWithPrefix
(gender string)
names.go:76
↓ 7 callersFunctionjoin
(parts ...string)
fake.go:140
↓ 7 callersFunctionrandGender
()
names.go:3
↓ 6 callersFunctionfirstName
(gender string)
names.go:11
↓ 6 callersFunctionlastName
(gender string)
names.go:30
↓ 4 callersFunctionBrand
Brand generates brand name
products.go:4
↓ 4 callersFunctionCompany
Company generates company name
jobs.go:8
↓ 4 callersFunctionWord
Word generates random word
lorem_ipsum.go:27
↓ 4 callersFunctionWordsN
WordsN generates n random words
lorem_ipsum.go:32
↓ 3 callersFunctionCharacter
Character generates random character in the given language
lorem_ipsum.go:8
↓ 3 callersFunctionCharactersN
CharactersN generates n random characters in the given language
lorem_ipsum.go:13
↓ 3 callersFunctionGender
Gender generates random gender
personal.go:8
↓ 3 callersMethodOpen
(name string)
data.go:40
↓ 3 callersFunctionSentence
Sentence generates random sentence
lorem_ipsum.go:51
↓ 3 callersFunctionSentencesN
SentencesN generates n random sentences
lorem_ipsum.go:73
↓ 3 callersFunctionStreet
Street generates random street name
addresses.go:47
↓ 3 callersFunctionfullName
(gender string)
names.go:120
↓ 3 callersFunctionpatronymic
(gender string)
names.go:49
↓ 2 callersFunctionCountry
Country generates random country
addresses.go:11
↓ 2 callersFunctionCreditCardNum
CreditCardNum generated credit card number according to the card number rules
credit_cards.go:52
↓ 2 callersFunctionDigits
Digits returns from 1 to 5 digits as a string
general.go:59
↓ 2 callersFunctionDigitsN
DigitsN returns n digits as a string
general.go:50
↓ 2 callersFunctionDomainName
DomainName generates random domain name
internet.go:30
↓ 2 callersFunctionEnFallback
EnFallback sets the flag that allows fake to fallback to englsh samples if the ones for the used languaged are not available
fake.go:127
↓ 2 callersFunctionFSByte
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
data.go:152
↓ 2 callersFunctionFirstName
FirstName generates first name
names.go:26
↓ 2 callersFunctionFullName
FullName generates full name it can occasionally include prefix or suffix
names.go:145
↓ 2 callersFunctionIndustry
Industry generates industry name
jobs.go:23
↓ 2 callersFunctionLastName
LastName generates last name
names.go:45
↓ 2 callersFunctionParagraph
Paragraph generates paragraph
lorem_ipsum.go:87
↓ 2 callersFunctionParagraphs
Paragraphs generates from 1 to 5 paragraphs
lorem_ipsum.go:101
↓ 2 callersFunctionParagraphsN
ParagraphsN generates n paragraphs
lorem_ipsum.go:92
↓ 2 callersFunctionPassword
Password generates password with the length from atLeast to atMOst charachers, allow* parameters specify whether corresponding symbols can be used
general.go:34
↓ 2 callersFunctionProductName
ProductName generates product name
products.go:9
↓ 2 callersFunctionTopLevelDomain
TopLevelDomain generates random top level domain
internet.go:25
↓ 2 callersFunctionUserName
UserName generates user name in one of the following forms first name + last name, letter + last names or concatenation of from 1 to 3 lowercased word
internet.go:12
↓ 2 callersFunctiongenerate
(lang, cat string, fallback bool)
fake.go:150
↓ 2 callersFunctionhexDigitsStr
(n int)
general.go:63
↓ 2 callersMethodprepare
(name string)
data.go:48
↓ 1 callersFunctionCharacters
Characters generates from 1 to 5 characters in the given language
lorem_ipsum.go:22
↓ 1 callersFunctionCity
City generates random city
addresses.go:16
↓ 1 callersMethodClose
()
data.go:96
↓ 1 callersFunctionColor
Color generates color name
general.go:45
↓ 1 callersFunctionContinent
Continent generates random continent
addresses.go:6
↓ 1 callersFunctionCreditCardType
CreditCardType returns one of the following credit values: VISA, MasterCard, American Express and Discover
credit_cards.go:41
↓ 1 callersFunctionCurrency
Currency generates currency name
currencies.go:4
↓ 1 callersFunctionCurrencyCode
CurrencyCode generates currency code
currencies.go:9
↓ 1 callersFunctionDay
Day generates day of the month
dates.go:4
↓ 1 callersFunctionDomainZone
DomainZone generates random domain zone
internet.go:50
↓ 1 callersFunctionEmailAddress
EmailAddress generates email address
internet.go:35
↓ 1 callersFunctionEmailBody
EmailBody generates random email body
internet.go:45
↓ 1 callersFunctionEmailSubject
EmailSubject generates random email subject
internet.go:40
↓ 1 callersFunctionFS
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
data.go:134
↓ 1 callersFunctionFSMustByte
FSMustByte is the same as FSByte, but panics if name is not present.
data.go:168
↓ 1 callersFunctionFemaleFirstName
FemaleFirstName generates female first name
names.go:21
↓ 1 callersFunctionFemaleFullName
FemaleFullName generates female full name it can occasionally include prefix or suffix
names.go:139
↓ 1 callersFunctionFemaleFullNameWithPrefix
FemaleFullNameWithPrefix generates prefixed female full name if prefixes for the given language are available
names.go:88
↓ 1 callersFunctionFemaleFullNameWithSuffix
FemaleFullNameWithSuffix generates suffixed female full name if suffixes for the given language are available
names.go:110
↓ 1 callersFunctionFemaleLastName
FemaleLastName generates female last name
names.go:40
↓ 1 callersFunctionFemalePatronymic
FemalePatronymic generates female patronymic
names.go:59
↓ 1 callersMethodFile
()
data.go:85
↓ 1 callersFunctionFullNameWithPrefix
FullNameWithPrefix generates prefixed full name if prefixes for the given language are available
names.go:94
↓ 1 callersFunctionFullNameWithSuffix
FullNameWithSuffix generates suffixed full name if suffixes for the given language are available
names.go:116
↓ 1 callersFunctionGenderAbbrev
GenderAbbrev returns first downcased letter of the random gender
personal.go:13
↓ 1 callersFunctionHexColor
HexColor generates hex color name
general.go:72
↓ 1 callersFunctionHexColorShort
HexColorShort generates short hex color name
general.go:77
↓ 1 callersFunctionIPv4
IPv4 generates IPv4 address
internet.go:55
↓ 1 callersFunctionIPv6
IPv6 generates IPv6 address
internet.go:65
↓ 1 callersFunctionJobTitle
JobTitle generates job title
jobs.go:13
↓ 1 callersFunctionLanguage
Language generates random human language
personal.go:22
↓ 1 callersFunctionLatitude
Latitude generates latitude (from -90.0 to 90.0)
geo.go:4
↓ 1 callersFunctionLatitudeDegrees
LatitudeDegrees generates latitude degrees (from -90 to 90)
geo.go:9
↓ 1 callersFunctionLatitudeDirection
LatitudeDirection generates latitude direction (N(orth) o S(outh))
geo.go:24
↓ 1 callersFunctionLatitudeMinutes
LatitudeMinutes generates latitude minutes (from 0 to 60)
geo.go:14
↓ 1 callersFunctionLatitudeSeconds
LatitudeSeconds generates latitude seconds (from 0 to 60)
geo.go:19
↓ 1 callersFunctionLongitude
Longitude generates longitude (from -180 to 180)
geo.go:32
↓ 1 callersFunctionLongitudeDegrees
LongitudeDegrees generates longitude degrees (from -180 to 180)
geo.go:37
↓ 1 callersFunctionLongitudeDirection
LongitudeDirection generates (W(est) or E(ast))
geo.go:52
↓ 1 callersFunctionLongitudeMinutes
LongitudeMinutes generates (from 0 to 60)
geo.go:42
↓ 1 callersFunctionLongitudeSeconds
LongitudeSeconds generates (from 0 to 60)
geo.go:47
↓ 1 callersFunctionMaleFirstName
MaleFirstName generates male first name
names.go:16
↓ 1 callersFunctionMaleFullName
MaleFullName generates male full name it can occasionally include prefix or suffix
names.go:133
↓ 1 callersFunctionMaleFullNameWithPrefix
MaleFullNameWithPrefix generates prefixed male full name if prefixes for the given language are available
names.go:82
↓ 1 callersFunctionMaleFullNameWithSuffix
MaleFullNameWithSuffix generates suffixed male full name if suffixes for the given language are available
names.go:104
↓ 1 callersFunctionMaleLastName
MaleLastName generates male last name
names.go:35
↓ 1 callersFunctionMalePatronymic
MalePatronymic generates male patronymic
names.go:54
↓ 1 callersFunctionModel
Model generates model name that consists of letters and digits, optionally with a hyphen between them
products.go:23
↓ 1 callersFunctionMonth
Month generates month name
dates.go:24
↓ 1 callersFunctionMonthNum
MonthNum generates month number (from 1 to 12)
dates.go:34
↓ 1 callersFunctionMonthShort
MonthShort generates abbreviated month name
dates.go:29
↓ 1 callersFunctionPatronymic
Patronymic generates patronymic
names.go:64
↓ 1 callersFunctionPhone
Phone generates random phone number using one of the formats format specified in phone_format file
addresses.go:67
↓ 1 callersFunctionProduct
Product generates product title as brand + product name
products.go:18
↓ 1 callersMethodRandomPrefix
()
credit_cards.go:16
↓ 1 callersMethodSeed
(n int64)
fake.go:87
↓ 1 callersFunctionSentences
Sentences generates from 1 to 5 random sentences
lorem_ipsum.go:82
↓ 1 callersFunctionSimplePassword
SimplePassword is a wrapper around Password, it generates password with the length from 6 to 12 symbols, with upper characters and numeric symbols all
general.go:40
next →1–100 of 157, ranked by callers