Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2021 Changes in this version + type Client struct + Forecast *ForecastService + func NewClient(opts ...Option) (*Client, error) + type Current struct + Clouds float64 + Datetime int + DewPoint float64 + FeelsLike float64 + Humidity float64 + Pressure float64 + Sunrise int + Sunset int + Temperature float64 + UVI float64 + Visibility float64 + Weather []*Weather + WindDeg float64 + WindGust float64 + WindSpeed float64 + type Daily struct + Clouds float64 + Datetime int + DewPoint float64 + FeelsLike FeelsLike + Humidity float64 + PrecipProbability float64 + Pressure float64 + Rain float64 + Sunrise int + Sunset int + Temperature Temperature + UVI float64 + Weather []*Weather + WindDegree float64 + WindSpeed float64 + type Fault struct + ErrorCode int + Message string + func (f *Fault) Error() string + type FeelsLike struct + Day float64 + Evening float64 + Morning float64 + Night float64 + type Forecast struct + Current *Current + Daily []*Daily + Hourly []*Hourly + Latitude float64 + Longitude float64 + Minutely []*Minutely + Timezone string + TimezoneOffset int + func (f *Forecast) Forecast() (*wx.Forecast, error) + type ForecastOption func(*url.Values) error + type ForecastService service + func (s *ForecastService) Forecast(ctx context.Context, opts wx.ForecastOptions) (*Forecast, error) + type Hourly struct + Clouds float64 + Datetime int + DewPoint float64 + FeelsLike float64 + Humidity float64 + PrecipProbability float64 + Pressure float64 + Rain *Rain + Temperature float64 + Visibility float64 + Weather []*Weather + WindDegree float64 + WindSpeed float64 + type Minutely struct + Datetime int + Precipitation float64 + type Option func(*Client) error + func WithHTTPClient(client *http.Client) Option + func WithHTTPTracing(debug bool) Option + func WithToken(token *oauth2.Token) Option + func WithTokenCredentials(accessToken, refreshToken string, expiry time.Time) Option + func WithTransport(t http.RoundTripper) Option + type Rain struct + OneH float64 + type Temperature struct + Day float64 + Evening float64 + Max float64 + Min float64 + Morning float64 + Night float64 + type Weather struct + Description string + ID int + Icon string + Main string