Documentation
¶
Index ¶
Constants ¶
View Source
const ( LangEnglish = "en" LangChinese = "zh-CN" )
Supported language codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct {
City string `json:"city"`
CityEN string `json:"city_en"` // English name for localization
Subdiv string `json:"subdiv"` // Province/State
SubdivEN string `json:"subdiv_en"` // English subdivision
Country string `json:"country"`
CountryEN string `json:"country_en"` // English country
ISOCode string `json:"iso_code"`
ISP string `json:"isp"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Precision string `json:"precision"` // "city", "subdivision", "country", "none"
}
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
Click to show internal directories.
Click to hide internal directories.