Update README.md

This commit is contained in:
Artem Piskun 2016-03-14 14:19:41 +03:00
parent c131693a53
commit 83d3334321

View File

@ -34,7 +34,7 @@ client := discogs.NewClient().UserAgent("TestDiscogsClient/0.0.1 +example.com")
#### Releases #### Releases
```go ```go
params := &discogs.ReleaseParams{Release_id: "8138518"} params := &discogs.ReleaseParams{Release_id: "8138518"}
release, _, err := d.Release.Release(params) release, _, err := client.Release.Release(params)
fmt.Println(fmt.Println(release.Artists[0].Name, " - ", release.Title)) // St. Petersburg Ska-Jazz Review - Elephant Riddim fmt.Println(fmt.Println(release.Artists[0].Name, " - ", release.Title)) // St. Petersburg Ska-Jazz Review - Elephant Riddim
``` ```
@ -42,7 +42,7 @@ client := discogs.NewClient().UserAgent("TestDiscogsClient/0.0.1 +example.com")
#### Artists #### Artists
```go ```go
params := &discogs.LabelParams{Label_id: "890477", Page: 2, Per_page: 3} params := &discogs.LabelParams{Label_id: "890477", Page: 2, Per_page: 3}
label, _, err := d.Label.Releases(params) label, _, err := client.Label.Releases(params)
for _, release := range label.Releases { for _, release := range label.Releases {
fmt.Println(release.Title) fmt.Println(release.Title)