Documentation
¶
Index ¶
- Constants
- func Countries() []string
- func IsCountry(c string) bool
- func RandomCountry() string
- func UserToScim(rUser User) scim.User
- type Coordinates
- type DateOfBirth
- type ID
- type Info
- type Location
- type Login
- type Name
- type PasswordSettings
- type Picture
- type Registered
- type Request
- type Results
- type Street
- type Timezone
- type User
Constants ¶
View Source
const ( CountryAustralia = "AU" CountryBrazil = "BR" CountryCanada = "CA" CountryDenmark = "DK" CountryFinland = "FI" CountryFrance = "FR" CountryGermany = "DE" CountryIran = "IR" CountryIreland = "IE" CountryNetherlands = "NL" CountryNewZealand = "NZ" CountryNorway = "NO" CountrySpain = "ES" CountrySwitzerland = "CH" CountryTurkey = "TR" CountryUnitedKingdom = "GB" CountryUnitedStates = "US" )
View Source
const (
ApiURL = "https://randomuser.me/api/"
)
Variables ¶
This section is empty.
Functions ¶
func RandomCountry ¶
func RandomCountry() string
func UserToScim ¶
Types ¶
type Coordinates ¶
type DateOfBirth ¶
type Name ¶
type Name struct {
Title string `json:"title"`
First string `json:"first"`
Last string `json:"last"`
}
func (*Name) IsAZSimple ¶
type PasswordSettings ¶
type Registered ¶
type Request ¶
type Request struct {
Count uint16
Country string
Gender string
PasswordSettings PasswordSettings
Seed string
}
type Results ¶
type User ¶
type User struct {
Gender string `json:"gender,omitempty"`
Name Name `json:"name,omitempty"`
Location Location `json:"location,omitepty"`
Email string `json:"email,omitempty"`
Login Login `json:"login,omitempty"`
DateOfBirth DateOfBirth `json:"dob,omitempty"`
Registered Registered `json:"registered,omitempty"`
Phone string `json:"phone,omitempty"`
Cell string `json:"cell,omitempty"`
ID ID `json:"id,omitempty"`
Picture Picture `json:"picture,omitempty"`
Nationality string `json:"nat,omitempty"`
}
func (*User) CellFormatted ¶
func (*User) PhoneFormatted ¶
Click to show internal directories.
Click to hide internal directories.