README ¶ covid19 Covid19 is an a public API that collect data about coronavirus at Peru Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type API func NewAPI() (*API, error) func (api *API) Run(port int64) error type CoronaStats type News Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { // contains filtered or unexported fields } func NewAPI ¶ func NewAPI() (*API, error) func (*API) Run ¶ func (api *API) Run(port int64) error type CoronaStats ¶ type CoronaStats struct { From time.Time `json:"from"` To time.Time `json:"to"` Confirmed int64 `json:"confirmed"` Recovered int64 `json:"recovered"` Deaths int64 `json:"deaths"` } type News ¶ type News struct { ID string `json:"id"` Date time.Time `json:"date"` Title string `json:"title"` Body string `json:"body"` Media []string `json:"media"` Source string `json:"source"` } Source Files ¶ View all Source files api.gostats.go Directories ¶ Show internal Expand all Path Synopsis ctl Click to show internal directories. Click to hide internal directories.