Пример #1
0
func playlistClear(cmd *Cmd, conn *mpd.Client) (*Result, error) {
	if err := conn.PlaylistClear(cmd.Playlist); err != nil {
		return nil, err
	}
	return playlistContents(cmd, conn)
}