This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e58f208
commit 2ed7817
Showing
4 changed files
with
90 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,76 +5,76 @@ | |
------ | ||
|
||
```go | ||
faker.Latitude() // => 81.12195 | ||
faker.Longitude() // => -84.38158 | ||
faker.Latitude() // => 81.12195 | ||
faker.Longitude() // => -84.38158 | ||
``` | ||
|
||
### Datetime | ||
|
||
--- | ||
|
||
```go | ||
faker.Unixtime() // => 1197930901 | ||
faker.Date() // => 1982-02-27 | ||
faker.TimeString() // => 03:10:25 | ||
faker.MonthName() // => February | ||
faker.YearString() // => 1994 | ||
faker.DayOfWeek() // => Sunday | ||
faker.DayOfMonth() // => 20 | ||
faker.Timestamp() // => 1973-06-21 14:50:46 | ||
faker.Century() // => IV | ||
faker.Timezone() // => Asia/Jakarta | ||
faker.Timeperiod() // => PM | ||
faker.Unixtime() // => 1197930901 | ||
faker.Date() // => 1982-02-27 | ||
faker.TimeString() // => 03:10:25 | ||
faker.MonthName() // => February | ||
faker.YearString() // => 1994 | ||
faker.DayOfWeek() // => Sunday | ||
faker.DayOfMonth() // => 20 | ||
faker.Timestamp() // => 1973-06-21 14:50:46 | ||
faker.Century() // => IV | ||
faker.Timezone() // => Asia/Jakarta | ||
faker.Timeperiod() // => PM | ||
``` | ||
|
||
### Internet | ||
|
||
--- | ||
|
||
```go | ||
faker.Email() // => [email protected] | ||
faker.MacAddress() // => cd:65:e1:d4:76:c6 | ||
faker.DomainName() // => FWZcaRE.org | ||
faker.URL() // => https://www.oEuqqAY.org/QgqfOhd | ||
faker.Username() // => lVxELHS | ||
faker.IPv4() // => 99.23.42.63 | ||
faker.IPv6() // => 975c:fb2c:2133:fbdd:beda:282e:1e0a:ec7d | ||
faker.Password() // => dfJdyHGuVkHBgnHLQQgpINApynzexnRpgIKBpiIjpTP | ||
faker.Email() // => [email protected] | ||
faker.MacAddress() // => cd:65:e1:d4:76:c6 | ||
faker.DomainName() // => FWZcaRE.org | ||
faker.URL() // => https://www.oEuqqAY.org/QgqfOhd | ||
faker.Username() // => lVxELHS | ||
faker.IPv4() // => 99.23.42.63 | ||
faker.IPv6() // => 975c:fb2c:2133:fbdd:beda:282e:1e0a:ec7d | ||
faker.Password() // => dfJdyHGuVkHBgnHLQQgpINApynzexnRpgIKBpiIjpTP | ||
``` | ||
|
||
### Words and Sentences | ||
|
||
--- | ||
|
||
```go | ||
faker.Word() // => nesciunt | ||
faker.Sentence() // => Consequatur perferendis voluptatem accusantium. | ||
faker.Paragraph() // => Aut consequatur sit perferendis accusantium voluptatem. Accusantium perferendis consequatur voluptatem sit aut. Aut sit accusantium consequatur voluptatem perferendis. Perferendis voluptatem aut accusantium consequatur sit. | ||
faker.Word() // => nesciunt | ||
faker.Sentence() // => Consequatur perferendis voluptatem accusantium. | ||
faker.Paragraph() // => Aut consequatur sit perferendis accusantium voluptatem. Accusantium perferendis consequatur voluptatem sit aut. Aut sit accusantium consequatur voluptatem perferendis. Perferendis voluptatem aut accusantium consequatur sit. | ||
``` | ||
|
||
### Payment | ||
|
||
--- | ||
|
||
```go | ||
faker.CCType() // => American Express | ||
faker.CCNumber() // => 373641309057568 | ||
faker.Currency() // => USD | ||
faker.AmountWithCurrency() // => USD 49257.100 | ||
faker.CCType() // => American Express | ||
faker.CCNumber() // => 373641309057568 | ||
faker.Currency() // => USD | ||
faker.AmountWithCurrency() // => USD 49257.100 | ||
``` | ||
|
||
### Person | ||
|
||
--- | ||
|
||
```go | ||
faker.TitleMale() // => Mr. | ||
faker.TitleFemale() // => Mrs. | ||
faker.FirstName() // => Whitney | ||
faker.FirstNameMale() // => Kenny | ||
faker.FirstNameFemale() // => Jana | ||
faker.LastName() // => Rohan | ||
faker.Name() // => Mrs. Casandra Kiehn | ||
faker.TitleMale() // => Mr. | ||
faker.TitleFemale() // => Mrs. | ||
faker.FirstName() // => Whitney | ||
faker.FirstNameMale() // => Kenny | ||
faker.FirstNameFemale() // => Jana | ||
faker.LastName() // => Rohan | ||
faker.Name() // => Mrs. Casandra Kiehn | ||
``` | ||
|
||
|
||
|
@@ -84,18 +84,18 @@ faker.Name() // => Mrs. Casandra Kiehn | |
--- | ||
|
||
```go | ||
faker.Phonenumber() // -> 201-886-0269 | ||
faker.Phonenumber() // -> 201-886-0269 | ||
faker.TollFreePhoneNumber() // => (777) 831-964572 | ||
faker.E164PhoneNumber() // => +724891571063 | ||
faker.E164PhoneNumber() // => +724891571063 | ||
``` | ||
|
||
### UUID | ||
|
||
--- | ||
|
||
```go | ||
faker.UUIDHyphenated() // => 8f8e4463-9560-4a38-9b0c-ef24481e4e27 | ||
faker.UUIDDigit() // => 90ea6479fd0e4940af741f0a87596b73 | ||
faker.UUIDHyphenated() // => 8f8e4463-9560-4a38-9b0c-ef24481e4e27 | ||
faker.UUIDDigit() // => 90ea6479fd0e4940af741f0a87596b73 | ||
``` | ||
|
||
### Unique values | ||
|
@@ -107,5 +107,5 @@ faker.SetGenerateUniqueValues(true) // Enable unique data generation on single f | |
faker.Word() | ||
//... | ||
faker.SetGenerateUniqueValues(false) // Disable unique data generation on single fake data functions | ||
faker.ResetUnique() // Forget all generated unique values | ||
faker.ResetUnique() // Forget all generated unique values | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters