weather

package
v0.0.0-...-0f72ad8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidZip

func IsValidZip(zip string) bool

func Render

func Render(template string, pfc *PlaceWeatherForecasts) (string, error)

Types

type Place

type Place struct {
	Ip                string
	Latitude          string
	Longitude         string
	PlaceName         string
	State             string
	StateAbbreviation string
	Zip               string
	ImageUrl          string
}

type PlaceWeatherForecasts

type PlaceWeatherForecasts struct {
	Place
	Forecasts []WeatherForecast
}

func RetrieveForecastForPlace

func RetrieveForecastForPlace(zip, ip string) (*PlaceWeatherForecasts, error)

type WeatherForecast

type WeatherForecast struct {
	Number           int64
	Name             string
	StartTime        string
	EndTime          string
	IsDaytime        bool
	Temperature      int64
	TemperatureUnit  string
	WindSpeed        string
	WindDirection    string
	ShortForecast    string
	DetailedForecast string
	SvgSymbolId      string
}

Jump to

Keyboard shortcuts

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