Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forecast ¶
type Forecast struct {
Conditions string
}
Forecast is a custom type used to communicate weather data to other packages.
type WeatherOptions ¶
type WeatherOptions func(*Weatherman)
func WithFilter ¶
func WithFilter(filters []string) WeatherOptions
type Weatherman ¶
type Weatherman struct {
// contains filtered or unexported fields
}
Weatherman is an interface for interacting with the Weather API
func New ¶
func New(apikey string, options ...WeatherOptions) *Weatherman
New returns a new Weatherman
func (*Weatherman) CheckWeather ¶
CheckWeather is a function that will return weather data for a certain date based on geographical coordinates and a date.
Click to show internal directories.
Click to hide internal directories.