Documentation ¶
Index ¶
Constants ¶
View Source
const Endpoint = "http://ip-api.com/json"
Variables ¶
View Source
var EnableQuery bool = true
View Source
var ErrQueryDisabled = errors.New("ipapi: Query disabled by user.")
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { As string `json:"as"` City string `json:"city"` Country string `json:"country"` CountryCode string `json:"countryCode"` Isp string `json:"isp"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Org string `json:"org"` Query string `json:"query"` Region string `json:"region"` RegionName string `json:"regionName"` TimeZone string `json:"timezone"` Zip string `json:"zip"` }
Click to show internal directories.
Click to hide internal directories.