This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
go-discogs/examples/discogs_example.go
2018-03-13 00:12:06 +03:00

30 lines
470 B
Go

package main
import (
"fmt"
"net/url"
"github.com/irlndts/go-discogs"
)
func main() {
d, err := discogs.NewClient(&discogs.Options{
UserAgent: "TestDiscogsClient/0.0.1 +http://example.com",
Currency: "EUR",
Token: "",
})
if err != nil {
fmt.Println(err)
return
}
params := url.Values{}
params.Set("q", "Ska-Jazz Review")
release, err := d.Search.Search(params)
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("%+v\n", release)
}