Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCountryListInfo ¶
func GetCountryListInfo(code string) map[string]CountryLangZone
GetCountryListInfo 获取国家时区地区信息集合 code 国家地区简称
func GetCountryTimeZoneList ¶
GetCountryTimeZoneList 获取指定国家所在地区的包含的时区集合 code 国家地区简称
Types ¶
type CountryLangZone ¶
type CountryLangZone struct {
Id int `json:"id"`
ZhCountry string `json:"zh_country"`
LangCountry string `json:"lang_country"`
Country string `json:"country"`
Code2 string `json:"code2"`
Code3 string `json:"code3"`
Language string `json:"language"`
LangCode string `json:"lang_code"`
TimeZone string `json:"time_zone"`
ZoneCity string `json:"zone_city"`
GmtOffset string `json:"gmt_offset"`
ZoneOffset int `json:"zone_offset"`
ZonePrior int `json:"zone_prior"`
CurrencySymbol string `json:"currency_symbol"`
CurrencyCode string `json:"currency_code"`
CurrencyNumeric int `json:"currency_numeric"`
CurrencyName string `json:"currency_name"`
ZhCurrencyName string `json:"zh_currency_name"`
}
func GetCountryInfo ¶
func GetCountryInfo(code string, city ...string) (CountryLangZone, bool)
GetCountryInfo 获取国家信息 code 国家国家编码 city 可选参数 [时区地区]名称 英语一下划线分割
Click to show internal directories.
Click to hide internal directories.