if err != nil {
return nil, err
} else {
if !partitionContains(partition, split[2]) {
// TODO partitions that contain a space aren't possible
return nil, fmt.Errorf("name '%v' is no partition", split[2])
} else {
return charts.Subset(parent, partition, charts.KeyTitle(split[2])), nil
https://github.com/nilsbu/lastfm/blob/eb5b15e5bae0ba649a0e9942cff9e58bbbe239ab/pkg/pipeline/pipeline.go#L292