Versions in this module Expand all Collapse all v0 v0.3.1 Feb 17, 2026 v0.3.0 Feb 16, 2026 v0.2.0 Feb 16, 2026 v0.1.0 Feb 15, 2026 Changes in this version + func NewTools(apikey string, opts ...client.ClientOpt) ([]tool.Tool, error) + type AlertsWeatherRequest struct + Language string + Query string + func (r *AlertsWeatherRequest) Values(apiKey string) url.Values + type Astro struct + IsMoonUp int + IsSunUp int + MoonIllumination int + MoonPhase string + MoonRise string + MoonSet string + SunRise string + SunSet string + type Client struct + func New(ApiKey string, opts ...client.ClientOpt) (*Client, error) + func (c *Client) Alerts(ctx context.Context, req *AlertsWeatherRequest) (Forecast, error) + func (c *Client) Current(ctx context.Context, req *CurrentWeatherRequest) (Weather, error) + func (c *Client) Forecast(ctx context.Context, req *ForecastWeatherRequest) (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 CurrentWeatherRequest struct + AirQuality bool + Language string + Pollen bool + Query string + func (r *CurrentWeatherRequest) Values(apiKey string) url.Values + 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 ForecastWeatherRequest struct + AirQuality bool + Alerts bool + Date string + Days int + Language string + Pollen bool + Query string + func (r *ForecastWeatherRequest) Values(apiKey string) url.Values + 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 *CurrentConditions + Id int + Location *Location + Query string + func (w Weather) String() string