GO-OPENWEATHER
go-openweather is a library/wrapper for the OpenWeather API that is written in Go.
Features:
Has the basic access to the OpenWeather API:
- Get the weather by City name, City ID, Coordinates, Zip Code;
- Get Forecast Data
Installation:
$ go get -u github.com/rbo13/go-openweatherHow to use:
client := openweather.NewClient("OPENWEATHER_API_KEY")
// Get Current Weather By City name
weatherData, err := client.GetWeatherByCityName("London")
// validation removed for brevity
log.Print(weatherData)TODO:
- Get Forecast Data
- Add more test
LICENSE:
MIT