api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiIndia

func ApiIndia() ([]byte, error)

ApiIndia queries the API and returns the response body containing stats about Covid-19 in India.

func ApiIndiaTimeline

func ApiIndiaTimeline() ([]byte, error)

ApiIndiaTimeline queries the timeline feature of the API and returns per-day statistics.

func District

func District(args []string) error

District provides district-wise stats of a particular state for Covid-19 in India.

func Districts

func Districts(args []string) error

Districts returns a slice containing a list of valid districts of a state.

func PlotConfirmed

func PlotConfirmed() error

PlotConfirmed provides plotting functionality for confirmed cases per day.

func PlotDeaths

func PlotDeaths() error

PlotDeaths provides plotting functionality for number of deaths per day.

func PlotGeneral

func PlotGeneral(key string) ([]float64, error)

func PlotRecovered

func PlotRecovered() error

PlotRecovered provides plotting functionality for number of recoveries from Covid-19 per day.

func State

func State(args []string) error

State prints stats about Covid-19 for a particular state in India.

func States

func States() error

States returns a slice containing a list of valid states.

Types

This section is empty.

Jump to

Keyboard shortcuts

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