func (c *Client) playlists() []string { plists := c.player.Playlists() lines := make([]string, 0, len(plists)) for _, pl := range plists { lines = append(lines, serialize.Playlist(pl)) } return lines }
func (c *Client) playlists(plists []*player.Playlist) { for _, pl := range plists { c.conn.WriteLine(serialize.Playlist(pl)) } }