Discover Packages
github.com/wtfutil/wtf
modules
weatherservices
weather
package
Version:
v0.35.0
Opens a new window with list of versions in this module.
Published: Jan 3, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Widget is the container for weather data.
NewWidget creates and returns a new instance of the weather Widget
Fetch retrieves OpenWeatherMap data from the OpenWeatherMap API.
It takes a list of OpenWeatherMap city IDs.
It returns a list of OpenWeatherMap CurrentWeatherData structs, one per valid city code.
func (widget *Widget ) Refresh()
Refresh fetches new data from the OpenWeatherMap API and loads the new data into the.
widget's view for rendering
Source Files
¶
Click to show internal directories.
Click to hide internal directories.