Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWeatherLocation ¶
func AddWeatherLocation(ctx context.Context, location config.WeatherLocation)
Types ¶
type Weather ¶
type Weather struct { Coord Coord `json:"coord"` Data []WeatherData `json:"weather"` Base string `json:"base"` Main Main `json:"main"` Visibility int `json:"visibility"` Wind Wind `json:"wind"` Clouds Clouds `json:"clouds"` Dt int `json:"dt"` Sys Sys `json:"sys"` Timezone int `json:"timezone"` ID int `json:"id"` Name string `json:"name"` Cod int `json:"cod"` }
type WeatherData ¶
type WeatherLocation ¶
type WeatherLocation struct { Name string Lat string Lon string API string Unit string Lang string Weather }
func CurrentWeather ¶
func CurrentWeather(name string) WeatherLocation
Click to show internal directories.
Click to hide internal directories.