29 lines
442 B
Go
29 lines
442 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"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
|
|
}
|
|
|
|
release, err := d.Search.Search(discogs.SearchRequest{
|
|
Q: "Ska-Jazz Review",
|
|
})
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
fmt.Printf("%+v\n", release)
|
|
}
|