weather

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSemanticVersion

func GetSemanticVersion() string

GetSemanticVersion returns the package version

Types

type Prediction

type Prediction uint8

Prediction describes a weather prediction.

const (
	Sunny Prediction = iota
	Rain
	Overcast
	Snow
	Unknown
)

The supported weather prediction types (enum type).

func PredictAtCoords

func PredictAtCoords(lat, long float64) (Prediction, error)

PredictAtCoords returns a weather prediction for the specified GPS coordinates.

func (Prediction) ToString

func (p Prediction) ToString() string

ToString returns the corresponding weather as a string

Jump to

Keyboard shortcuts

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