go-wunderground
A go package for interacting with the Wunderground weather API.
Table of Contents
Installation
go get "github.com/ZachtimusPrime/go-wunderground/wunderground"
Usage
Construct a new Wunderground client to pull weather data for a specific city.
For example:
package main
import (
"github.com/ZachtimusPrime/go-wunderground/wunderground"
)
func main() {
// Create new Wunderground client
client := wunderground.NewClient(nil, "TN", "Nashville", {your-API-key})
// Get current weather data
weather, err := client.GetWeather()
if err != nil {
log.Print(err)
}
}