Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "http://ip-api.com/json"
URL is a constant that contains where to find the IP locale info
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Status string `json:"status"` Country string `json:"country"` CountryCode string `json:"countryCode"` Region string `json:"region"` RegionName string `json:"regionName"` City string `json:"city"` Zip string `json:"zip"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Timezone string `json:"timezone"` ISP string `json:"isp"` ORG string `json:"org"` AS string `json:"as"` Message string `json:"message"` Query string `json:"query"` }
Data will hold the result of the query to get the IP address of the caller.
func GetLocation ¶
GetLocation will get the location details for where this application has been run from.
type WeatherData ¶
WeatherData result
func FindWheatherByCity ¶
func FindWheatherByCity(wp *WeatherParams) *WeatherData
FindWheatherByCity requested by city.
func GetHereHandler ¶
func GetHereHandler() (*WeatherData, error)
GetHereHandler requested by IP API.
func (*WeatherData) String ¶
func (wd *WeatherData) String() string
Click to show internal directories.
Click to hide internal directories.