numbeo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name, URL string
}

func GetRankingByCountryCategories

func GetRankingByCountryCategories() ([]*Category, error)

GetRankingByCountryCategories will return a map with keys as category names (pass to TableParams.Category) and values as links to the numbeo.com page (pass to TableParams.URL)

type Country

type Country struct {
	Name   string
	Values []float64
}

type Table

type Table struct {
	Headers       []string
	CountryValues map[string][]float64
}

func GetPageTable

func GetPageTable(params TableParams) *Table

func ParseTable

func ParseTable(node *html.Node) *Table

type TableParams

type TableParams struct {
	URL, Title, Region string
}

Jump to

Keyboard shortcuts

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