api

package
v0.0.0-...-1d88b96 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Street string
	City   string
	State  string
	Zip    int
}

type Forecast

type Forecast struct {
	Name string
	Temp float64
	Unit string
	Desc string
}

Forecast models the important info from the API json reponse

func GetFore

func GetFore(addr Addr) []Forecast

GetFore makes the API request and returns a slice of custom Forecast structs

func (Forecast) String

func (f Forecast) String() string

returns a string representation of a Forecast

Jump to

Keyboard shortcuts

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