lastfm

package
v0.0.0-...-e30276e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Name string `json:"#text"`
}

Album represents the album information returned in the lastfm json

func (Album) String

func (a Album) String() string

type Artist

type Artist struct {
	Name string `json:"#text"`
}

Artist represents the artist information returned in the lastfm json

func (Artist) String

func (a Artist) String() string

type Recenttracks

type Recenttracks struct {
	User   User    `json:"@attr"`
	Tracks []Track `json:"track"`
}

Recenttracks represents the metadata returned in the lastfm json

func (Recenttracks) String

func (r Recenttracks) String() string

type Track

type Track struct {
	Artist     Artist     `json:"artist"`
	Nowplaying *TrackAttr `json:"@attr,omitempty"`
	Album      Album      `json:"album"`
	Name       string     `json:"name"`
}

Track represents the track information returned in the lastfm json

func (Track) String

func (t Track) String() string

type TrackAttr

type TrackAttr struct {
	Nowplaying string `json:"nowplaying"`
}

TrackAttr contains the track metadata, with now playing information

type User

type User struct {
	User string `json:"user"`
}

User represents the user information returned in the lastfm json

func (User) String

func (u User) String() string

Jump to

Keyboard shortcuts

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