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
↓ 1 callers
Function
State
State generates random state
addresses.go:37
↓ 1 callers
Function
StateAbbrev
StateAbbrev generates random state abbreviation
addresses.go:42
↓ 1 callers
Function
StreetAddress
StreetAddress generates random street name along with building number
addresses.go:53
↓ 1 callers
Function
Title
Title generates from 2 to 5 titleized words
lorem_ipsum.go:46
↓ 1 callers
Function
UserAgent
UserAgent generates a random user agent.
internet.go:75
↓ 1 callers
Function
WeekDay
WeekDay generates name ot the week day
dates.go:9
↓ 1 callers
Function
WeekDayShort
WeekDayShort generates abbreviated name of the week day
dates.go:14
↓ 1 callers
Function
WeekdayNum
WeekdayNum generates number of the day of the week
dates.go:19
↓ 1 callers
Function
Words
Words generates from 1 to 5 random words
lorem_ipsum.go:41
↓ 1 callers
Function
Year
Year generates year using the given boundaries
dates.go:39
↓ 1 callers
Function
Zip
Zip generates random zip code using one of the formats specifies in zip_format file
addresses.go:62
↓ 1 callers
Function
_lookup
(lang, cat string, fallback bool)
fake.go:170
↓ 1 callers
Function
cityPrefix
()
addresses.go:28
↓ 1 callers
Function
citySuffix
()
addresses.go:32
↓ 1 callers
Function
creditCardNumChecksum
(num []rune)
credit_cards.go:73
↓ 1 callers
Function
fullNameWithSuffix
(gender string)
names.go:98
↓ 1 callers
Method
hasKeyPath
(lang, cat string)
fake.go:131
↓ 1 callers
Function
jobTitleSuffix
()
jobs.go:18
↓ 1 callers
Function
populateSamples
(lang, cat string)
fake.go:189
↓ 1 callers
Function
prefix
(gender string)
names.go:68
↓ 1 callers
Function
readFile
(lang, cat string)
fake.go:205
↓ 1 callers
Function
streetSuffix
()
addresses.go:57
↓ 1 callers
Function
suffix
(gender string)
names.go:72
↓ 1 callers
Function
text
(atLeast, atMost int, allowLower, allowUpper, allowNumeric, allowSpecial bool)
general.go:9
Function
Dir
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
data.go:143
Function
FSMustString
FSMustString is the string version of FSMustByte.
data.go:183
Function
FSString
FSString is the string version of FSByte.
data.go:177
Method
Int63
()
fake.go:80
Method
IsDir
()
data.go:124
Method
ModTime
()
data.go:120
Method
Mode
()
data.go:116
Method
Name
()
data.go:108
Method
Open
(name string)
data.go:73
Method
Open
(name string)
data.go:81
Method
Readdir
(count int)
data.go:100
Function
Seed
Seed uses the provided seed value to initialize the internal PRNG to a deterministic state.
fake.go:71
Method
Size
()
data.go:112
Method
Stat
()
data.go:104
Method
Sys
()
data.go:128
Function
TestAddresses
(t *testing.T)
addresses_test.go:7
Function
TestConcurrentSafety
TestConcurrentSafety runs fake methods in multiple go routines concurrently. This test should be run with the race detector enabled.
fake_test.go:39
Function
TestCreditCards
(t *testing.T)
credit_cards_test.go:7
Function
TestCurrencies
(t *testing.T)
currencies_test.go:7
Function
TestDates
(t *testing.T)
dates_test.go:7
Function
TestFakerRuWithCallback
(t *testing.T)
fake_test.go:28
Function
TestFakerRuWithoutCallback
(t *testing.T)
fake_test.go:19
Function
TestGeneral
(t *testing.T)
general_test.go:7
Function
TestGeo
(t *testing.T)
geo_test.go:7
Function
TestInternet
(t *testing.T)
internet_test.go:7
Function
TestJobs
(t *testing.T)
jobs_test.go:7
Function
TestLoremIpsum
(t *testing.T)
lorem_ipsum_test.go:7
Function
TestNames
(t *testing.T)
names_test.go:7
Function
TestPersonal
(t *testing.T)
personal_test.go:7
Function
TestProducts
(t *testing.T)
products_test.go:7
Function
TestSetLang
(t *testing.T)
fake_test.go:7
Function
UseExternalData
UseExternalData sets the flag that allows using of external files as data providers (fake uses embedded ones by default)
fake.go:122
Function
init
()
credit_cards.go:30
← previous
101–157 of 157, ranked by callers