weather

package module
v0.0.0-...-15504bf Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2015 License: Unlicense Imports: 7 Imported by: 0

README

weather

Weather Parsing for US National Weather Service data.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchWeatherXML

func FetchWeatherXML(weatherUrl string) ([]byte, error)

func LoadWeatherXMLFile

func LoadWeatherXMLFile(weatherPath string) ([]byte, error)

Types

type Report

type Report struct {
	Weather     string `xml:"weather"`
	Temperature string `xml:"temperature_string"`
	Humidity    string `xml:"relative_humidity"`
	Wind        string `xml:"wind_string"`
	Pressure    string `xml:"pressure_string"`
	Dewpoint    string `xml:"dewpoint_string"`
	Visibility  string `xml:"visibility_mi"`
}

func GetWeatherFromFile

func GetWeatherFromFile(weatherPath string) (*Report, error)

func GetWeatherFromWeb

func GetWeatherFromWeb(weatherUrl string) (*Report, error)

func ParseWeather

func ParseWeather(weatherXml []byte) (*Report, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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