Documentation ¶
Index ¶
Constants ¶
View Source
const ( GBISO2 = "GB" UKISO2 = "UK" )
Variables ¶
This section is empty.
Functions ¶
func InitGeoLocation ¶
func InitGeoLocation(cfg IP2LocationConfig) (err error)
Types ¶
type IP2LocationConfig ¶
type Location ¶
type Location struct { ContinentCode string `json:",omitempty"` ContinentName string `json:",omitempty"` CountryName string `json:",omitempty"` CountryISO2 string `json:",omitempty"` CountryISO3 string `json:",omitempty"` RegionName string `json:",omitempty"` RegionCode string `json:",omitempty"` City string `json:",omitempty"` ZipCode string `json:",omitempty"` Latitude float64 `json:",omitempty"` Longitude float64 `json:",omitempty"` }
func GeoLocation ¶
Click to show internal directories.
Click to hide internal directories.