openweather

package
v0.0.0-...-d39b551 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Lat    float64
	Long   float64
	ApiKey string
	// contains filtered or unexported fields
}

func (*Client) GetCurrentWeather

func (c *Client) GetCurrentWeather(currWeather *CurrentWeatherData) error

func (*Client) Setup

func (c *Client) Setup()

type CurrentWeatherData

type CurrentWeatherData struct {
	Weather Weather
	Main    MainWeatherData
	DT      int32
}

type MainWeatherData

type MainWeatherData struct {
	Temp     int16
	TempMin  int16
	TempMax  int16
	Humidity int16
}

type Weather

type Weather struct {
	ID          int16
	Main        string
	Description string
	Icon        string
}

Jump to

Keyboard shortcuts

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