// GetStrings implements index.Track (will panic if the field doesn't exist as a list // of strings). func (t *itlTrack) GetStrings(name string) []string { switch name { case "Artist", "AlbumArtist", "Composer": return index.DefaultGetStrings(t, name) } panic(fmt.Sprintf("field '%v' is not a []string", name)) }
// GetStrings implements index.Track. func (m *track) GetStrings(name string) []string { switch name { case "Artist", "AlbumArtist", "Composer": return index.DefaultGetStrings(m, name) } return nil }