geo

package
v0.0.0-...-5fee3ad Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geo

type Geo struct {
	Country string
	// contains filtered or unexported fields
}

Geo represents a structure to help query the `geo` LastFM API functions.

func New

func New(client *lastfm.Client, country string, limit int) (geo *Geo)

New returns an instance of the `geo` API endpoint functions for LastFM.

func (*Geo) GetTopArtists

func (g *Geo) GetTopArtists(page int) (gta *geoTopArtists, err error)

GetTopArtists fetches the most popular artists on LastFM by country.

func (*Geo) GetTopTracks

func (g *Geo) GetTopTracks(location string, page int) (gtt *geoTopTracks, err error)

GetTopTracks fetches the most popular tracks in the last week on LastFM by country.

Jump to

Keyboard shortcuts

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