Skip to content
🌦 My take on creating a simple wrapper for the openweather API.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
coordinates.go
forecast.go
openweather.go
openweather_test.go
weather.go

README.md

GO-OPENWEATHER

Go Report Card GoDoc

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-openweather

How 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

You can’t perform that action at this time.