Same idea as flickr-to-go, but written in Go for learning and comparison.
- Install Ginkgo: http://onsi.github.io/ginkgo/.
- Clone the repo and ensure that the
GOPATH
environment variableis set appropriately as for any other Go project.
- If you've set up your Go environment "by the book", this is as simple as running
go get github.com/sgravrock/flickr-to-go-go
.
- Obtain a Flickr API key and set the
FLICKR_API_KEY
andFLICKR_API_SECRET
environment variables accordingly. - To run the tests, run
ginkgo -r
from the repo root. - To build, run
go build
.
- Install Counterfeiter: $ go get github.com/maxbrunsfeld/counterfeiter
- Run it: $ counterfeiter e.g. $ counterfeiter flickrapi Client