Documentation ¶
Index ¶
Constants ¶
View Source
const ( RegionUS = "us" RegionEU = "eu" RegionKR = "kr" RegionTW = "tw" RegionCN = "cn" )
View Source
const ( LocaleEnUs = "en_US" LocaleEsMx = "es_MX" LocalePt = "pt_BR" LocaleDe = "de_DE" LocaleEnGb = "en_GB" LocaleEsEs = "es_ES" LocaleFr = "fr_FR" LocaleIt = "it_IT" LocaleRu = "ru_RU" LocaleKo = "ko_KR" LocaleZhTw = "zh_TW" LocaleZhCn = "zh_CN" )
Variables ¶
This section is empty.
Functions ¶
func CheckLocale ¶
func CheckLocaleBytes ¶
func CheckRegion ¶
func CheckRegionBytes ¶
Types ¶
type Character ¶
type Character struct { ID int `json:"id"` Name string `json:"name"` Realm struct { ID int `json:"id"` Name string `json:"name,intern"` Slug string `json:"slug,intern"` } `json:"realm"` Class struct { ID int `json:"id"` Name string `json:"name,intern"` } `json:"playable_class"` Race struct { ID int `json:"id"` Name string `json:"name,intern"` } `json:"playable_race"` Gender struct { Type string `json:"type,intern"` Name string `json:"name,intern"` } `json:"gender"` Faction struct { Type string `json:"type,intern"` Name string `json:"name,intern"` } `json:"faction"` Level int `json:"level"` }
func (Character) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Character) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Character) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Character) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Profile ¶
type Profile struct { WoWAccounts []struct { ID int `json:"id"` Characters []Character `json:"characters"` } `json:"wow_accounts"` }
func (Profile) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Profile) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Profile) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Profile) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.