Versions in this module Expand all Collapse all v0 v0.0.2 Mar 24, 2023 v0.0.1 Oct 30, 2022 Changes in this version + const DEFAULT_BASEURL + var CurrentOnly = Arguments + var CurrentWithAlerts = Arguments + var Defaults = make(Arguments) + type Alert struct + Description string + Expires int + Title string + URI string + type Arguments map[string]string + func (args Arguments) ToURLValues() url.Values + type Client struct + APIKey string + BaseURL string + func NewClient(apiKey string) *Client + func (c *Client) Get(path string, args Arguments) (Forecast *Forecast, err error) + func (c *Client) GetCtx(ctx context.Context, path string, args Arguments) (forecast *Forecast, err error) + func (c *Client) GetForecast(lat, lng string, args Arguments) (forecast *Forecast, err error) + func (c *Client) GetForecastCtx(ctx context.Context, lat, lng string, args Arguments) (forecast *Forecast, err error) + func (c *Client) GetRaw(path string, args Arguments, ctx ...context.Context) (body io.ReadCloser, err error) + func (c *Client) GetTimeMachineForecast(lat, lng string, t time.Time, args Arguments) (forecast *Forecast, err error) + func (c *Client) GetTimeMachineForecastCtx(ctx context.Context, lat, lng string, t time.Time, args Arguments) (forecast *Forecast, err error) + type DataBlock struct + Data []DataPoint + Icon string + Summary string + type DataPoint struct + ApparentTemperature float64 + ApparentTemperatureMax float64 + ApparentTemperatureMaxTime *Time + ApparentTemperatureMin float64 + ApparentTemperatureMinTime *Time + CloudCover float64 + DewPoint float64 + Humidity float64 + Icon string + MoonPhase float64 + NearestStormBearing float64 + NearestStormDistance float64 + Ozone float64 + PrecipAccumulation float64 + PrecipIntensity float64 + PrecipIntensityMax float64 + PrecipIntensityMaxTime *Time + PrecipProbability float64 + PrecipType string + Pressure float64 + Summary string + SunriseTime float64 + SunsetTime float64 + Temperature float64 + TemperatureMax float64 + TemperatureMaxTime float64 + TemperatureMin float64 + TemperatureMinTime float64 + Time Time + UVIndex int + UVIndexTime *Time + Visibility float64 + WindBearing float64 + WindGust float64 + WindSpeed float64 + type Flags struct + DarkSkyUnavailable string + Sources []string + Units string + type Forecast struct + Alerts []Alert + Currently *DataPoint + Daily *DataBlock + Flags *Flags + Hourly *DataBlock + Latitude float64 + Longitude float64 + Minutely *DataBlock + Timezone string + type Time struct + func (t *Time) UnmarshalJSON(b []byte) (err error) + func (t Time) MarshalJSON() ([]byte, error)