Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidApiKey = fmt.Errorf("invalid owm api key") ErrLenWeather0 = fmt.Errorf("the owm response contains no weather information") )
Functions ¶
This section is empty.
Types ¶
type WeatherMeasurement ¶
type WeatherMeasurement struct { Id uint `json:"id"` Time uint `json:"time"` // Time as Unix-millis WeatherTitle string `json:"weatherTitle"` WeatherDescription string `json:"weatherDescription"` Temperature float32 `json:"temperature"` FeelsLike float32 `json:"feelsLike"` Humidity uint8 `json:"humidity"` Sunrise uint `json:"sunrise"` Sunset uint `json:"sunset"` }
func GetCurrentWeather ¶
func GetCurrentWeather() (WeatherMeasurement, error)
Click to show internal directories.
Click to hide internal directories.