Follow up of #202, I realized that including the Description field in SimplePlaylist means it should removed from FullPlaylist.
It is very minor, but having it in both structs (In addition to being redundant) means that when explicitly selecting the SimplePlaylist part from the struct, the Description is always empty. It meant we couldn't do this :
func printDescription(playlist SimplePlaylist) {
fmt.Println(playlist.Description)
}
playlist, err := client.GetPlaylist(ctx, spotify.ID(spotifyID)) // Assume we fetch a playlist with a non empty Description
printDescription(playlist.SimplePlaylist) // Prints nothing, even if playlist.Description is not empty
}
Follow up of #202, I realized that including the
Description
field inSimplePlaylist
means it should removed fromFullPlaylist
.It is very minor, but having it in both structs (In addition to being redundant) means that when explicitly selecting the
SimplePlaylist
part from the struct, theDescription
is always empty. It meant we couldn't do this :