imdb
provides a simple wrapper around the OMDb API.
Install in the usual Go fashion:
$ go get -u github.com/kenshaw/imdb
imdb
can be used similarly to the following:
import (
/* ... */
"github.com/kenshaw/imdb"
)
cl := imdb.New("my-api-key")
res, err := cl.Search("Fight Club", "")
if err != nil { /* ... */ }
log.Printf(">>> results: %+v", res)
Please see the GoDoc listing for the full API.