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
2016-03-04 19:48:26 +03:00

20 lines
324 B
Go

package main
import (
"fmt"
"github.com/irlndts/go-discogs"
// "io/ioutil"
"net/http"
)
func main() {
client := &http.Client{}
d := discogs.NewClient(client)
params := &discogs.ReleaseParams{12345}
release, resp, err := d.Release.Release(params)
fmt.Println(release.Title)
fmt.Println(resp)
fmt.Println(err)
}