gorona

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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) Active

func (cs CaseStates) Active() int64

Active is the total number of active

func (CaseStates) Cases

func (cs CaseStates) Cases() int64

Cases is the total number 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) Deaths

func (cs CaseStates) Deaths() int64

Deaths is the total number of deaths

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL