Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forecast ¶
type Forecast struct { Dt int32 `json:"dt"` Main struct { Temp float64 `json:"temp"` FeelsLike float64 `json:"feels_like"` TempMin float64 `json:"temp_min"` TempMax float64 `json:"temp_max"` Pressure float64 `json:"pressure"` SeaLevel float64 `json:"sea_level"` GrndLevel float64 `json:"grnd_level"` Humidity float64 `json:"humidity"` TempKf float64 `json:"temp_kf"` } `json:"main"` Weather []struct { ID int32 `json:"id"` Main string `json:"main"` Description string `json:"description"` Icon string `json:"icon"` } `json:"weather"` Clouds struct { All int32 `json:"all"` } `json:"clouds"` Wind struct { Speed float64 `json:"speed"` Deg int32 `json:"deg"` Gust float64 `json:"gust"` } `json:"wind"` Visibility int32 `json:"visibility"` Pop float64 `json:"pop"` Rain struct { ThreeHour float64 `json:"3h"` } `json:"rain"` Sys struct { Pod string `json:"pod"` } `json:"sys"` Dt_txt string `json:"dt_txt"` }
type ResponseGetForecast ¶
type ResponseGetForecast struct { Cod string `json:"cod"` Message int32 `json:"message"` Cnt int32 `json:"cnt"` List []Forecast `json:"list"` City City `json:"city"` }
func GetForecastByCoord ¶
func GetForecastByCoord(lat float64, lon float64) (*ResponseGetForecast, error)
GetForecastByCoord retrieve Forecast by geolocation coordinates
Click to show internal directories.
Click to hide internal directories.