Versions in this module Expand all Collapse all v1 v1.1.3 Aug 11, 2021 v1.1.2 Aug 9, 2021 v1.1.1 Aug 9, 2021 v1.1.0 Aug 3, 2021 v1.0.1 Jul 28, 2021 v1.0.0 Jul 22, 2021 Changes in this version + const BaseURL + func Bool(v bool) *bool + func Float64(v float64) *float64 + func Int(v int) *int + func String(v string) *string + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient() *Client + func (c *Client) Do(ctx context.Context, path string, v interface{}) (*http.Response, error) + func (c *Client) GetForecast(ctx context.Context, location string) (*Forecast, *http.Response, error) + func (c *Client) GetObservation(ctx context.Context, location string) (*Observation, *http.Response, error) + func (c *Client) GetObservationForecastHours(ctx context.Context, location string) (*ObservationForecastHours, *http.Response, error) + func (c *Client) GetObservationOneMin(ctx context.Context, location string) (*ObservationOneMin, *http.Response, error) + func (c *Client) GetPollen(ctx context.Context, location string) (*Pollen, *http.Response, error) + func (c *Client) GetRiseSet(ctx context.Context, location string) (*RiseSet, *http.Response, error) + type DayPart struct + Afternoon *DayPartTime + Evening *DayPartTime + Morning *DayPartTime + Overnight *DayPartTime + type DayPartTime struct + ForecastWord *string + IconType *string + type Forecast struct + Days []ForecastDay + LocationGFS *int + LocationIPS *string + LocationWASP *string + SaturdayForecastWord *string + SundayForcastWord *string + type ForecastDay struct + Date *Timestamp + Forecast *string + ForecastWord *string + IssuedAt *Timestamp + Max *int + Min *int + Part *DayPart + RiseSet *RiseSet + Source *string + SourceTemps *string + type ForecastHour struct + Date *Timestamp + Humidity *int + Offset *int + Rainfall *float64 + Temp *int + WindDirection *string + WindSpeed *int + type Observation struct + ID *string + Location *string + LocationID *int + ThreeHour *ObservationThreeHour + TwentyFourHour *ObservationTwentyFourHour + type ObservationForecastHours struct + Count *int + Forecasts []ForecastHour + Location *string + LocationName *string + Observations []ObservationHour + RainfallTotalForecast *float64 + RainfallTotalObserved *float64 + WindSpeed *int + type ObservationHour struct + Date *Timestamp + Offset *int + Rainfall *float64 + Temp *float64 + WindDirection *string + WindSpeed *int + type ObservationOneMin struct + ClothingLayers *int + Current *bool + Date *Timestamp + Past *string + Rainfall *float64 + RelativeHumidity *int + Status *string + WindProofLayers *int + type ObservationThreeHour struct + ClothingLayers *int + Date *Timestamp + Humidity *int + Pressure *string + Rainfall *float64 + Temp *int + WindChill *int + WindDirection *string + WindProofLayers *int + WindSpeed *int + type ObservationTwentyFourHour struct + DatePretty *string + Max *int + Min *int + Rainfall *float64 + type Pollen struct + Enabled *bool + Location *string + PollenDays []PollenDay + type PollenDay struct + DayDescriptor *string + Level *string + Type *string + ValidFrom *Timestamp + ValidTo *Timestamp + type RiseSet struct + Date *Timestamp + FirstLight *Timestamp + ID *string + LastLight *Timestamp + Location *string + MoonRise *Timestamp + MoonSet *Timestamp + SunRise *Timestamp + SunSet *Timestamp + type StatusError struct + Code int + func (e StatusError) Error() string + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(data []byte) (err error) + func (t Timestamp) Equal(u Timestamp) bool + func (t Timestamp) String() string