Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportCSV ¶
func ExportCSV(data []*GlobalData) ([]byte, error)
ExportCSV function returns CSV string from list of WHOGlobalData.
func ExportJSON ¶
func ExportJSON(data []*GlobalData) ([]byte, error)
ExportJSON function returns JSON string from list of WHOGlobalData.
Types ¶
type GlobalData ¶
type GlobalData struct { Date values.Date CountryCode values.CountryCode WHORegion values.RegionCode NewCases json.Number CumulativeCases json.Number NewDeaths json.Number CumulativeDeaths json.Number }
GlobalData is entity class for WHO COVID-19 global data
func New ¶
func New(date, countryCode, regionCode, newCases, cumulativeCases, newDeaths, cumulativeDeaths string) (*GlobalData, error)
New function returns new GlobalData instance.
func (*GlobalData) CheckFilter ¶
func (d *GlobalData) CheckFilter(f *filter.Filters) bool
CheckFilter method returns true if cheking filter is OK.
Click to show internal directories.
Click to hide internal directories.