package
Version:
v0.0.0-...-7075c49
Opens a new window with list of versions in this module.
Published: Mar 22, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Confirmed struct {
Latest int `json:"latest"`
Timeline Timeline `json:"timeline"`
}
type Coordinates struct {
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
}
type Corona struct {
Latest Latest `json:"latest"`
Locations []Locations `json:"locations"`
}
type CoronaQueryData struct {
CountryCode string `url:"country_code"`
Timelines bool `url:"timelines"`
}
type Deaths struct {
Latest int `json:"latest"`
Timeline Timeline `json:"timeline"`
}
type Latest struct {
Confirmed int `json:"confirmed"`
Deaths int `json:"deaths"`
Recovered int `json:"recovered"`
}
type Locations struct {
Coordinates Coordinates `json:"coordinates"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
ID int `json:"id"`
LastUpdated time.Time `json:"last_updated"`
Latest Latest `json:"latest"`
Province string `json:"province"`
Timelines Timelines `json:"timelines"`
}
type Recovered struct {
Latest int `json:"latest"`
Timeline Timeline `json:"timeline"`
}
type Timelines struct {
Confirmed Confirmed `json:"confirmed"`
Deaths Deaths `json:"deaths"`
Recovered Recovered `json:"recovered"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.