()
| 3 | import "fmt" |
| 4 | |
| 5 | func ExampleRandomdata() { |
| 6 | |
| 7 | // Print a male first name |
| 8 | fmt.Println(FirstName(Male)) |
| 9 | |
| 10 | // Print a female first name |
| 11 | fmt.Println(FirstName(Female)) |
| 12 | |
| 13 | // Print a last name |
| 14 | fmt.Println(LastName()) |
| 15 | |
| 16 | // Print a male name |
| 17 | fmt.Println(FullName(Male)) |
| 18 | |
| 19 | // Print a female name |
| 20 | fmt.Println(FullName(Female)) |
| 21 | |
| 22 | // Print a name with random gender |
| 23 | fmt.Println(FullName(RandomGender)) |
| 24 | |
| 25 | // Print a random email |
| 26 | fmt.Println(Email()) |
| 27 | |
| 28 | // Print a country with full text representation |
| 29 | fmt.Println(Country(FullCountry)) |
| 30 | |
| 31 | // Print a country using ISO 3166-1 alpha-3 |
| 32 | fmt.Println(Country(ThreeCharCountry)) |
| 33 | |
| 34 | // Print a country using ISO 3166-1 alpha-2 |
| 35 | fmt.Println(Country(TwoCharCountry)) |
| 36 | |
| 37 | // Print a currency using ISO 4217 |
| 38 | fmt.Println(Currency()) |
| 39 | |
| 40 | // Print the name of a random city |
| 41 | fmt.Println(City()) |
| 42 | |
| 43 | // Print the name of a random american state |
| 44 | fmt.Println(State(Large)) |
| 45 | |
| 46 | // Print the name of a random american state using two letters |
| 47 | fmt.Println(State(Small)) |
| 48 | |
| 49 | // Print a random number >= 10 and <= 20 |
| 50 | fmt.Println(Number(10, 20)) |
| 51 | |
| 52 | // Print a number >= 0 and <= 20 |
| 53 | fmt.Println(Number(20)) |
| 54 | |
| 55 | // Print a random float >= 0 and <= 20 with decimal point 3 |
| 56 | fmt.Println(Decimal(0, 20, 3)) |
| 57 | |
| 58 | // Print a random float >= 10 and <= 20 |
| 59 | fmt.Println(Decimal(10, 20)) |
| 60 | |
| 61 | // Print a random float >= 0 and <= 20 |
| 62 | fmt.Println(Decimal(20)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…