model

package
v0.0.0-...-31c2686 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCountryData

func ParseCountryData(cities []*City) map[string]map[string]int

Types

type City

type City struct {
	Name string `json:"city"`
	Province
	Country
	Municipality bool `json:"municipality"`
	Confirmed    int  `json:"confirm"`
	Suspected    int  `json:"suspect"`
	Cured        int  `json:"heal"`
	Dead         int  `json:"dead"`
}

type Country

type Country struct {
	Name string `json:"country"`
}

type Province

type Province struct {
	Name string `json:"area"`
}

Jump to

Keyboard shortcuts

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