Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpenWeatherMapHost = "api.openweathermap.org" OpenWeatherMapPath = "data/2.5/weather" )
Variables ¶
View Source
var LookIn = filepath.Join(os.Getenv("HOME"), ".weather.json")
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Host string `json:"host"` Path string `json:"path"` Token string `json:"token"` ZipCode string `json:"zip"` Units string `json:"units"` }
func LoadConfiguration ¶
func LoadConfiguration(data []byte) (*Configuration, error)
Click to show internal directories.
Click to hide internal directories.