Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Key string // contains filtered or unexported fields }
func (*Client) GetWeather ¶
func (c *Client) GetWeather(lat float64, lon float64) (*WeatherData, error)
type Interface ¶
type Interface interface {
GetWeather(lat float64, lon float64) (*WeatherData, error)
}
type WeatherData ¶
type WeatherData struct { Main WeatherMain `json:"main"` Weather []WeatherWeather `json:"weather"` }
type WeatherMain ¶
type WeatherMain struct {
Temp float64 `json:"temp"`
}
type WeatherWeather ¶
type WeatherWeather struct {
Description string `json:"description"`
}
Click to show internal directories.
Click to hide internal directories.