spotify_playlists

package
v0.0.0-...-40e63e7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Row

func Row(playlist spotify.SimplePlaylist) list.Row

Types

type List

type List struct {
	list.Base
	// contains filtered or unexported fields
}

func New

func New(client spotify.Client, source *spotify.SimplePlaylistPage) (*List, error)

func NewFromPlaylists

func NewFromPlaylists(playlists []spotify.SimplePlaylist) *List

func (*List) CursorPlaylist

func (l *List) CursorPlaylist() *spotify.SimplePlaylist

CursorPlaylist returns the playlist currently selected by the cursor.

func (*List) Playlist

func (l *List) Playlist(index int) *spotify.SimplePlaylist

Song returns the song at a specific index.

func (*List) Playlists

func (l *List) Playlists() []spotify.SimplePlaylist

func (*List) SelectionAsPlaylists

func (l *List) SelectionAsPlaylists() List

SelectionAsPlaylists returns all the selected songs as a new playlist list.

Jump to

Keyboard shortcuts

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