chart

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 Chart

type Chart struct {
	// contains filtered or unexported fields
}

Chart represents a structure to help query the `chart` LastFM API functions.

func New

func New(client *lastfm.Client, country string, limit int) (chart *Chart)

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

func (*Chart) GetTopArtists

func (c *Chart) GetTopArtists(page int) (cta *chartTopArtists, err error)

GetTopArtists fetches the top artists chart from LastFM.

func (*Chart) GetTopTags

func (c *Chart) GetTopTags(page int) (ctt *chartTopTags, err error)

GetTopTags fetches the top tags chart from LastFM.

func (*Chart) GetTopTracks

func (c *Chart) GetTopTracks(page int) (ctt *chartTopTracks, err error)

GetTopTracks fetches the top tracks chart from LastFM.

Jump to

Keyboard shortcuts

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