Versions in this module Expand all Collapse all v1 v1.0.25 May 29, 2024 v1.0.24 May 28, 2024 v1.0.23 May 27, 2024 v1.0.22 May 27, 2024 v1.0.21 May 27, 2024 v1.0.20 May 26, 2024 v1.0.19 May 26, 2024 v1.0.18 May 26, 2024 v1.0.17 May 25, 2024 v1.0.16 May 24, 2024 v1.0.15 Feb 19, 2024 Changes in this version + func CurrentHTML(current Current) html.HTML + type API interface + Forecast func(Type, string, int) ([]Day, error) + History func(Type, string, time.Time) (Day, error) + Realtime func(Type, string) (Current, error) + Standard func(Type) ([]AQI, error) + type AQI interface + Level func() Level + Type func() Type + Value func() int + func NewAQI(typ Type, value int, level Level) AQI + type Current interface + Pollutants func() []Pollutant + type Day interface + AQI func() AQI + Date func() string + Unix func() unit.UnixTime + type Kind int + const CO + const NO2 + const O3 + const PM10 + const PM2Dot5 + const SO2 + func (k Kind) HTML() html.HTML + func (k Kind) String() string + type Level interface + Color func() string + String func() string + func NewLevel(lv, color string) Level + type Pollutant interface + Kind func() Kind + Level func() Level + Unit func() string + Value func() float64 + func NewPollutant(kind Kind, unit string, value float64, level Level) Pollutant + type Type int + const Australia + const Canada + const China + const Europe + const India + const Netherland + const UK + const US + func (t *Type) UnmarshalText(b []byte) error + func (t Type) MarshalText() ([]byte, error) + func (t Type) String() string