coronavirusstats

package
v0.0.0-...-da9b74b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoronaData  = []CoronaVirusStat{}
	OverallData = []OverallStat{}
)

Functions

func GetCountriesData

func GetCountriesData(doc *goquery.Document)

func GetOverallData

func GetOverallData(doc *goquery.Document)

func GetURLInfo

func GetURLInfo(url string) (*goquery.Document, error)

GetURLInfo gets the latest blog title headings from the url given and returns them as a list.

Types

type CoronaVirusStat

type CoronaVirusStat struct {
	Country          string
	TotalCases       int
	NewCases         int
	TotalDeaths      int
	NewDeaths        int
	TotalRecovered   int
	ActiveCases      int
	Serious          int
	TotalCasesOneMil int
}

type OverallStat

type OverallStat struct {
	Title string
	Data  int
}

Jump to

Keyboard shortcuts

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