Documentation ¶
Index ¶
- func AddPlaylist(name, description string) error
- func AddSong(name, artist, source string) (string, error)
- func AddSongToPlaylist(song, playlist string) error
- func RemovePlaylist(playlist string)
- func RemoveSong(song string)
- func RemoveSongFromPlaylist(song, playlist string) error
- func SaveData(fileloc string, structdata Data) error
- type Data
- type Playlist
- type Song
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlaylist ¶
func AddSongToPlaylist ¶
func RemovePlaylist ¶
func RemovePlaylist(playlist string)
func RemoveSong ¶
func RemoveSong(song string)
func RemoveSongFromPlaylist ¶
Types ¶
type Data ¶
type Data struct { Version int `json:"Version"` Playlists map[string]Playlist `json:"Playlists"` Songs map[string]Song `json:"Songs"` }
var Userdata Data
Click to show internal directories.
Click to hide internal directories.