Documentation ¶
Index ¶
- type CaseState
- type CaseStates
- func (cs CaseStates) Active() int64
- func (cs CaseStates) Cases() int64
- func (cs CaseStates) CasesPerOneMillion() float64
- func (cs CaseStates) Critical() int64
- func (cs CaseStates) Deaths() int64
- func (cs CaseStates) DeathsPerOneMillion() float64
- func (cs CaseStates) Recovered() int64
- func (cs CaseStates) TodayCases() int64
- func (cs CaseStates) TodayDeaths() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseState ¶
type CaseState struct { Date time.Time `json:"-" header:"Date"` Country string `json:"country" header:"Country"` Cases int64 `json:"cases" header:"Cases"` TodayCases int64 `json:"todayCases" header:"Today Cases"` Deaths int64 `json:"deaths" header:"Deaths"` TodayDeaths int64 `json:"todayDeaths" header:"Today Deaths"` Recovered int64 `json:"recovered" header:"Recovered"` Active int64 `json:"active" header:"Active"` Critical int64 `json:"critical" header:"Critical"` CasesPerOneMillion float64 `json:"casesPerOneMillion" header:"Cases Per One Million"` DeathsPerOneMillion float64 `json:"deathsPerOneMillion" header:"Deaths Per One Million"` }
CaseState : Struct Case State
type CaseStates ¶
type CaseStates []CaseState
CaseStates is a list of cases
func (CaseStates) CasesPerOneMillion ¶
func (cs CaseStates) CasesPerOneMillion() float64
CasesPerOneMillion is the total number of cases per million
func (CaseStates) Critical ¶
func (cs CaseStates) Critical() int64
Critical is the total number of active
func (CaseStates) DeathsPerOneMillion ¶
func (cs CaseStates) DeathsPerOneMillion() float64
DeathsPerOneMillion is the total number of deaths per million
func (CaseStates) Recovered ¶
func (cs CaseStates) Recovered() int64
Recovered is the total number of recovered
func (CaseStates) TodayCases ¶
func (cs CaseStates) TodayCases() int64
TodayCases is the total number of today cases
func (CaseStates) TodayDeaths ¶
func (cs CaseStates) TodayDeaths() int64
TodayDeaths is the total number of today deaths
Click to show internal directories.
Click to hide internal directories.