go-wunderground

module
v0.0.0-...-48d0cbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2017 License: MIT

README

go-wunderground

A go package for interacting with the Wunderground weather API.

GoDoc Build Status Coverage Status Go Report Card

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)
        }
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL