(this can probably be greatly improved...)
Run the following command to enter a Docker container with a Go environment set up:
$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 bash
Inside the container, run the 'go get' command for the software you want to build and install:
root@3aac13b2bce8:/usr/src/myapp# go get github.com/itchio/gothub
Copy the binary into your working directory, fixing the permissions and ownership:
root@3aac13b2bce8:/usr/src/myapp# install -m 755 -o 1000 -g 1000 /go/bin/gothub .