Versions in this module Expand all Collapse all v1 v1.1.2 Jun 19, 2025 v1.1.1 May 2, 2025 v1.1.0 May 2, 2025 v1.0.12 Apr 5, 2025 v1.0.11 Jan 31, 2025 v1.0.10 Jan 31, 2025 Changes in this version type Client + func (c *Client) Tools() []agent.Tool v1.0.9 Jul 27, 2024 v1.0.8 May 31, 2024 v1.0.7 May 26, 2024 v1.0.6 May 26, 2024 Changes in this version + type Astro struct + IsMoonUp int + IsSunUp int + MoonIllumination int + MoonPhase string + MoonRise string + MoonSet string + SunRise string + SunSet string type Client + func (c *Client) Forecast(q string, opts ...Opt) (Forecast, error) + type Conditions struct + Cloud int + Condition struct{ ... } + FeelslikeC float64 + FeelslikeF float64 + GustKph float64 + GustMph float64 + Humidity int + IsDay int + PrecipIn float64 + PrecipMm float64 + PressureIn float64 + PressureMb float64 + TempC float64 + TempF float64 + Uv float64 + VisKm float64 + VisMiles float64 + WindDegree int + WindDir string + WindKph float64 + WindMph float64 + type CurrentConditions struct + LastUpdated Time + LastUpdatedEpoch int64 + type Day struct + AvgHumidity int + AvgTempC float64 + AvgTempF float64 + AvgVisKm float64 + AvgVisMiles float64 + ChanceOfRainPercent int + ChanceOfSnowPercent int + Condition struct{ ... } + MaxTempC float64 + MaxTempF float64 + MaxWindKph float64 + MaxWindMph float64 + MinTempC float64 + MinTempF float64 + TotalPrecipIn float64 + TotalPrecipMm float64 + TotalSnowCm float64 + Uv float32 + WillItRain int + WillItSnow int + type Forecast struct + Current *CurrentConditions + Forecast struct{ ... } + Id int + Location *Location + Query string + func (f Forecast) String() string + type ForecastConditions struct + Time Time + TimeEpoch int64 + type ForecastDay struct + Astro *Astro + Date string + DateEpoch int64 + Day *Day + Hour []*ForecastConditions + type Opt func(*options) error + func OptAirQuality() Opt + func OptAlerts() Opt + func OptDays(days int) Opt v1.0.5 May 24, 2024 v1.0.4 May 23, 2024 v1.0.3 May 15, 2024 Changes in this version + type Client struct + func New(ApiKey string, opts ...client.ClientOpt) (*Client, error) + func (c *Client) Current(q string) (Weather, error) + type Current struct + Cloud int + Condition struct{ ... } + FeelslikeC float64 + FeelslikeF float64 + GustKph float64 + GustMph float64 + Humidity int + IsDay int + LastUpdated Time + LastUpdatedEpoch int64 + PrecipIn float64 + PrecipMm float64 + PressureIn float64 + PressureMb float64 + TempC float64 + TempF float64 + Uv float64 + VisKm float64 + VisMiles float64 + WindDegree int + WindDir string + WindKph float64 + WindMph float64 + type Location struct + Country string + Lat float64 + Localtime Time + LocaltimeEpoch int64 + Lon float64 + Name string + Region string + Timezone string + type Time struct + func (t *Time) UnmarshalJSON(data []byte) error + type Weather struct + Current *Current + Id int + Location *Location + Query string + func (w Weather) String() string