A Go package for interacting with the Weatherbit API.
Switch branches/tags
Nothing to show
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.
.travis.yml
LICENSE
README.md
weatherbit.go

README.md

Build Status Go Report Card Go Docs

go-weatherbit

A Go package for interacting with the Weatherbit API.

Installation

$ go get -u "github.com/guitmz/go-weatherbit"

Usage

package main

import (
	"fmt"

	"github.com/guitmz/go-weatherbit"
)

func check(e error) {
	if e != nil {
		panic(e)
	}
}

func main() {
	weather, err := weatherbit.GetWeather("COUNTRY", "CITY", "API_KEY")
	check(err)
  	fmt.Printf("%+v\n", weather)
}