Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/icrowley/fake
/ functions
Functions
157 in github.com/icrowley/fake
⨍
Functions
157
◇
Types & classes
8
↓ 38 callers
Function
lookup
(lang, cat string, fallback bool)
fake.go:163
↓ 16 callers
Function
SetLang
SetLang sets the language in which the data should be generated returns error if passed language is not available
fake.go:106
↓ 13 callers
Function
GetLangs
GetLangs returns a slice of available languages
fake.go:94
↓ 7 callers
Function
fullNameWithPrefix
(gender string)
names.go:76
↓ 7 callers
Function
join
(parts ...string)
fake.go:140
↓ 7 callers
Function
randGender
()
names.go:3
↓ 6 callers
Function
firstName
(gender string)
names.go:11
↓ 6 callers
Function
lastName
(gender string)
names.go:30
↓ 4 callers
Function
Brand
Brand generates brand name
products.go:4
↓ 4 callers
Function
Company
Company generates company name
jobs.go:8
↓ 4 callers
Function
Word
Word generates random word
lorem_ipsum.go:27
↓ 4 callers
Function
WordsN
WordsN generates n random words
lorem_ipsum.go:32
↓ 3 callers
Function
Character
Character generates random character in the given language
lorem_ipsum.go:8
↓ 3 callers
Function
CharactersN
CharactersN generates n random characters in the given language
lorem_ipsum.go:13
↓ 3 callers
Function
Gender
Gender generates random gender
personal.go:8
↓ 3 callers
Method
Open
(name string)
data.go:40
↓ 3 callers
Function
Sentence
Sentence generates random sentence
lorem_ipsum.go:51
↓ 3 callers
Function
SentencesN
SentencesN generates n random sentences
lorem_ipsum.go:73
↓ 3 callers
Function
Street
Street generates random street name
addresses.go:47
↓ 3 callers
Function
fullName
(gender string)
names.go:120
↓ 3 callers
Function
patronymic
(gender string)
names.go:49
↓ 2 callers
Function
Country
Country generates random country
addresses.go:11
↓ 2 callers
Function
CreditCardNum
CreditCardNum generated credit card number according to the card number rules
credit_cards.go:52
↓ 2 callers
Function
Digits
Digits returns from 1 to 5 digits as a string
general.go:59
↓ 2 callers
Function
DigitsN
DigitsN returns n digits as a string
general.go:50
↓ 2 callers
Function
DomainName
DomainName generates random domain name
internet.go:30
↓ 2 callers
Function
EnFallback
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 callers
Function
FSByte
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
data.go:152
↓ 2 callers
Function
FirstName
FirstName generates first name
names.go:26
↓ 2 callers
Function
FullName
FullName generates full name it can occasionally include prefix or suffix
names.go:145
↓ 2 callers
Function
Industry
Industry generates industry name
jobs.go:23
↓ 2 callers
Function
LastName
LastName generates last name
names.go:45
↓ 2 callers
Function
Paragraph
Paragraph generates paragraph
lorem_ipsum.go:87
↓ 2 callers
Function
Paragraphs
Paragraphs generates from 1 to 5 paragraphs
lorem_ipsum.go:101
↓ 2 callers
Function
ParagraphsN
ParagraphsN generates n paragraphs
lorem_ipsum.go:92
↓ 2 callers
Function
Password
Password generates password with the length from atLeast to atMOst charachers, allow* parameters specify whether corresponding symbols can be used
general.go:34
↓ 2 callers
Function
ProductName
ProductName generates product name
products.go:9
↓ 2 callers
Function
TopLevelDomain
TopLevelDomain generates random top level domain
internet.go:25
↓ 2 callers
Function
UserName
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 callers
Function
generate
(lang, cat string, fallback bool)
fake.go:150
↓ 2 callers
Function
hexDigitsStr
(n int)
general.go:63
↓ 2 callers
Method
prepare
(name string)
data.go:48
↓ 1 callers
Function
Characters
Characters generates from 1 to 5 characters in the given language
lorem_ipsum.go:22
↓ 1 callers
Function
City
City generates random city
addresses.go:16
↓ 1 callers
Method
Close
()
data.go:96
↓ 1 callers
Function
Color
Color generates color name
general.go:45
↓ 1 callers
Function
Continent
Continent generates random continent
addresses.go:6
↓ 1 callers
Function
CreditCardType
CreditCardType returns one of the following credit values: VISA, MasterCard, American Express and Discover
credit_cards.go:41
↓ 1 callers
Function
Currency
Currency generates currency name
currencies.go:4
↓ 1 callers
Function
CurrencyCode
CurrencyCode generates currency code
currencies.go:9
↓ 1 callers
Function
Day
Day generates day of the month
dates.go:4
↓ 1 callers
Function
DomainZone
DomainZone generates random domain zone
internet.go:50
↓ 1 callers
Function
EmailAddress
EmailAddress generates email address
internet.go:35
↓ 1 callers
Function
EmailBody
EmailBody generates random email body
internet.go:45
↓ 1 callers
Function
EmailSubject
EmailSubject generates random email subject
internet.go:40
↓ 1 callers
Function
FS
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
data.go:134
↓ 1 callers
Function
FSMustByte
FSMustByte is the same as FSByte, but panics if name is not present.
data.go:168
↓ 1 callers
Function
FemaleFirstName
FemaleFirstName generates female first name
names.go:21
↓ 1 callers
Function
FemaleFullName
FemaleFullName generates female full name it can occasionally include prefix or suffix
names.go:139
↓ 1 callers
Function
FemaleFullNameWithPrefix
FemaleFullNameWithPrefix generates prefixed female full name if prefixes for the given language are available
names.go:88
↓ 1 callers
Function
FemaleFullNameWithSuffix
FemaleFullNameWithSuffix generates suffixed female full name if suffixes for the given language are available
names.go:110
↓ 1 callers
Function
FemaleLastName
FemaleLastName generates female last name
names.go:40
↓ 1 callers
Function
FemalePatronymic
FemalePatronymic generates female patronymic
names.go:59
↓ 1 callers
Method
File
()
data.go:85
↓ 1 callers
Function
FullNameWithPrefix
FullNameWithPrefix generates prefixed full name if prefixes for the given language are available
names.go:94
↓ 1 callers
Function
FullNameWithSuffix
FullNameWithSuffix generates suffixed full name if suffixes for the given language are available
names.go:116
↓ 1 callers
Function
GenderAbbrev
GenderAbbrev returns first downcased letter of the random gender
personal.go:13
↓ 1 callers
Function
HexColor
HexColor generates hex color name
general.go:72
↓ 1 callers
Function
HexColorShort
HexColorShort generates short hex color name
general.go:77
↓ 1 callers
Function
IPv4
IPv4 generates IPv4 address
internet.go:55
↓ 1 callers
Function
IPv6
IPv6 generates IPv6 address
internet.go:65
↓ 1 callers
Function
JobTitle
JobTitle generates job title
jobs.go:13
↓ 1 callers
Function
Language
Language generates random human language
personal.go:22
↓ 1 callers
Function
Latitude
Latitude generates latitude (from -90.0 to 90.0)
geo.go:4
↓ 1 callers
Function
LatitudeDegrees
LatitudeDegrees generates latitude degrees (from -90 to 90)
geo.go:9
↓ 1 callers
Function
LatitudeDirection
LatitudeDirection generates latitude direction (N(orth) o S(outh))
geo.go:24
↓ 1 callers
Function
LatitudeMinutes
LatitudeMinutes generates latitude minutes (from 0 to 60)
geo.go:14
↓ 1 callers
Function
LatitudeSeconds
LatitudeSeconds generates latitude seconds (from 0 to 60)
geo.go:19
↓ 1 callers
Function
Longitude
Longitude generates longitude (from -180 to 180)
geo.go:32
↓ 1 callers
Function
LongitudeDegrees
LongitudeDegrees generates longitude degrees (from -180 to 180)
geo.go:37
↓ 1 callers
Function
LongitudeDirection
LongitudeDirection generates (W(est) or E(ast))
geo.go:52
↓ 1 callers
Function
LongitudeMinutes
LongitudeMinutes generates (from 0 to 60)
geo.go:42
↓ 1 callers
Function
LongitudeSeconds
LongitudeSeconds generates (from 0 to 60)
geo.go:47
↓ 1 callers
Function
MaleFirstName
MaleFirstName generates male first name
names.go:16
↓ 1 callers
Function
MaleFullName
MaleFullName generates male full name it can occasionally include prefix or suffix
names.go:133
↓ 1 callers
Function
MaleFullNameWithPrefix
MaleFullNameWithPrefix generates prefixed male full name if prefixes for the given language are available
names.go:82
↓ 1 callers
Function
MaleFullNameWithSuffix
MaleFullNameWithSuffix generates suffixed male full name if suffixes for the given language are available
names.go:104
↓ 1 callers
Function
MaleLastName
MaleLastName generates male last name
names.go:35
↓ 1 callers
Function
MalePatronymic
MalePatronymic generates male patronymic
names.go:54
↓ 1 callers
Function
Model
Model generates model name that consists of letters and digits, optionally with a hyphen between them
products.go:23
↓ 1 callers
Function
Month
Month generates month name
dates.go:24
↓ 1 callers
Function
MonthNum
MonthNum generates month number (from 1 to 12)
dates.go:34
↓ 1 callers
Function
MonthShort
MonthShort generates abbreviated month name
dates.go:29
↓ 1 callers
Function
Patronymic
Patronymic generates patronymic
names.go:64
↓ 1 callers
Function
Phone
Phone generates random phone number using one of the formats format specified in phone_format file
addresses.go:67
↓ 1 callers
Function
Product
Product generates product title as brand + product name
products.go:18
↓ 1 callers
Method
RandomPrefix
()
credit_cards.go:16
↓ 1 callers
Method
Seed
(n int64)
fake.go:87
↓ 1 callers
Function
Sentences
Sentences generates from 1 to 5 random sentences
lorem_ipsum.go:82
↓ 1 callers
Function
SimplePassword
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