DSCGS-17 Use github.com/google/go-querystring/

This commit is contained in:
irlndts
2018-03-17 21:58:56 +03:00
parent 2bc2347afc
commit b2674eb55e
7 changed files with 726 additions and 36 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"fmt"
"net/url"
"github.com/irlndts/go-discogs"
)
@@ -18,9 +17,9 @@ func main() {
return
}
params := url.Values{}
params.Set("q", "Ska-Jazz Review")
release, err := d.Search.Search(params)
release, err := d.Search.Search(discogs.SearchRequest{
Q: "Ska-Jazz Review",
})
if err != nil {
fmt.Println(err)
return