labels block added

This commit is contained in:
irlndts
2016-03-10 18:10:08 +03:00
parent 2dd5b6734c
commit 3cd62fafbb
6 changed files with 73 additions and 5 deletions

View File

@@ -14,14 +14,14 @@ func main() {
params := &discogs.ReleaseParams{Release_id: "8138518"}
release, _, err := d.Release.Release(params)
*/
params := &discogs.ArtistParams{Artist_id: "1000"}
artist, _, err := d.Artist.Artist(params)
params := &discogs.LabelParams{Label_id: "1000"}
label, _, err := d.Label.Label(params)
if err != nil {
fmt.Println(err)
} else {
//fmt.Println(release.Title)
fmt.Println(artist.Id)
fmt.Println(label.Name)
}
//fmt.Println(resp)
}