gotemp

package module
v0.0.0-...-0d5e35e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2015 License: MIT Imports: 8 Imported by: 0

README

gotemp

A simple package to return current temperature in Fahrenheit from Yahoo API.

Install


$ go get github.com/jochasinga/gotemp
$ go install github.com/jochasinga/gotemp

Examples

Get a current temperature from New York City


package main

import (
        fmt
        temp "github.com/jochasinga/gotemp"
)

func main() {
		mytemp := temp.Now("New York", "US")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemp

func GetTemp(dat map[string]interface{}) int

func HandleError

func HandleError(err error)

func Now

func Now(city string) int

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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