Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Area string `json:"area"` AreaID int `json:"areaid"` DailyShot1 int `json:"dailydose1"` DailyShot2 int `json:"dailydose2"` DayDiff int `json:"daydiff"` DayTotal int `json:"daytotal"` TotalPersons int `json:"totaldistinctpersons"` TotalShot1 int `json:"totaldose1"` TotalShot2 int `json:"totaldose2"` TotalVaccinations int `json:"totalvaccinations"` ReferenceDate string `json:"referencedate"` }
Data describes the data returned by the vaccination API.
type List ¶
type List []Data
List is a representation of a Data array.
func (List) FilterByArea ¶
FilterByArea filters a vaccination List by the given area name and returns a new list that contains only the filtered data.
Click to show internal directories.
Click to hide internal directories.