Versions in this module Expand all Collapse all v0 v0.0.2 Mar 29, 2023 Changes in this version + const PIRATE_WEATHER v0.0.1 Oct 30, 2022 Changes in this version + var ICONS = []string + func DarkSky(key string) func(*options) + func Direction(b float64) string + func TimeZone(loc *time.Location) func(*options) + type Client struct + func NewClient(opts ...func(*options)) *Client + func (c *Client) At(ll geo.LatLng, t time.Time) (*Conditions, error) + func (c *Client) Current(ll geo.LatLng) (*Conditions, error) + func (c *Client) Forecast(ll geo.LatLng) (*Forecast, error) + func (c *Client) History(ll geo.LatLng, t time.Time) (*Conditions, error) + func (c *Client) Now(ll geo.LatLng) (*Conditions, error) + type Conditions struct + AirDensity float64 + AirPressure float64 + ApparentTemperature float64 + CloudCover float64 + Humidity float64 + Icon string + PrecipIntensity float64 + PrecipProbability float64 + PrecipType string + SunriseTime time.Time + SunsetTime time.Time + Temperature float64 + Time time.Time + UVIndex int + WindBearing float64 + WindGust float64 + WindSpeed float64 + func Average(cs []*Conditions) *Conditions + func DarkSkyToConditions(h *darksky.DataPoint, d *darksky.DataPoint, loc *time.Location) *Conditions + func (c *Conditions) Precip() string + func (c *Conditions) String() string + func (c *Conditions) Wind() string + type Forecast struct + Hourly []*Conditions