Documentation ¶
Index ¶
- Constants
- func DegreeToCardinalDirection(degrees int) string
- func Description(weatherData Response) string
- func EpochToFormattedString(epochTime int64) string
- func FeelsLike(weatherData Response) string
- func GustSpeed(weatherData Response) string
- func Humidity(weatherData Response) string
- func Location(weatherData Response) string
- func Pressure(weatherData Response) string
- func Temperature(weatherData Response) string
- func UpdatedDateTime(weatherData Response) string
- func WindSpeed(weatherData Response) string
- func WindSummary(weatherData Response) string
- type Conditions
- type Response
- type Sys
- type Weather
- type Wind
Constants ¶
View Source
const (
AbsoluteZero float64 = -273.15
)
Variables ¶
This section is empty.
Functions ¶
func DegreeToCardinalDirection ¶
DegreeToCardinalDirection returns string of cardinal direction given direction in degrees
func Description ¶
Description returns the description of the weather in title case as string
func EpochToFormattedString ¶
func FeelsLike ¶
FeelsLike returns the 'feels like' temperature in Celsius with "℃" notation as string.
func Temperature ¶
Temperature returns the temperature in Celsius with "℃" notation as string.
func UpdatedDateTime ¶
UpdatedDateTime returns formatted string of when weather was last updated
func WindSummary ¶
WindSummary returns string of wind's speed and direction
Types ¶
type Conditions ¶
Click to show internal directories.
Click to hide internal directories.