Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CityData ¶
type CityData struct {
Name string `json:"name"`
}
CityData Weather city data struct
type CloudsData ¶
type CloudsData struct {
All int `json:"all"`
}
CloudsData Weather cloud data struct
type Forecast ¶
type Forecast struct { Cod string `json:"cod"` Weather []WeatherData `json:"list"` City CityData `json:"city"` }
Forecast Weather forecast struct
type MainData ¶
type MainData struct { Temp float64 `json:"temp"` Pressure float64 `json:"pressure"` TempMin float64 `json:"temp_min"` TempMax float64 `json:"temp_max"` Humidity int `json:"humidity"` }
MainData Weather main data struct
type WDescData ¶
type WDescData struct { Id int64 `json:"id"` Main string `json:"main"` Desc string `json:"description"` Icon string `json:"icon"` }
WDescData Weather description struct
type WeatherData ¶
type WeatherData struct { Time int64 `json:"dt"` Main MainData `json:"main"` Wind WindData `json:"wind"` Clouds CloudsData `json:"clouds"` WDesc []WDescData `json:"weather"` }
WeatherData Weather data struct
Click to show internal directories.
Click to hide internal directories.