Versions in this module Expand all Collapse all v1 v1.1.0 Oct 16, 2017 Changes in this version + func PrintForecast(out io.Writer, forecast *ForecastResult) error + func PrintWeather(out io.Writer, weather *WeatherResult) error + type DayWeather struct + Clouds float64 + Deg float64 + Dt int64 + Humidity float64 + Pressure float64 + Rain float64 + Speed float64 + Temp struct{ ... } + Weather []WeatherDescription + type ForecastResult struct + City struct{ ... } + Cnt int + Cod string + List []DayWeather + Message float64 + func GetForecast(city string, days int) (*ForecastResult, error) + type WeatherDescription struct + Description string + Icon string + Id int + Main string + type WeatherResult struct + Base string + Clouds struct{ ... } + Cod int + Coord struct{ ... } + Dt int64 + Id int + Main struct{ ... } + Name string + Sys struct{ ... } + Visibility int + Weather []WeatherDescription + Wind struct{ ... } + func GetWeather(city string) (*WeatherResult, error)