github.com/wtfutil/wtf@v0.43.0/modules/covid/cases.go (about)

     1  package covid
     2  
     3  // Cases holds the latest cases
     4  type Cases struct {
     5  	Latest Latest `json:"latest"`
     6  }
     7  
     8  // Latest holds the number of global confirmed cases and deaths due to Covid
     9  type Latest struct {
    10  	Confirmed int `json:"confirmed"`
    11  	Deaths    int `json:"deaths"`
    12  	// Not currently used but holds information about the country
    13  	Locations []interface{} `json:"locations,omitempty"`
    14  }