The code for https://rwinslow.com/posts/use-flatbuffers-in-golang/
For other OSX/Windows go here.
git clone https://github.com/google/flatbuffers.git
cd flatbuffers
cmake -G "Unix Makefiles"
make
./flattests
sudo cp flatc /usr/local/bin/
flatc -g myschema.fbs
GOPATH=$(pwd) go get github.com/google/flatbuffers/go
GOPATH=$(pwd) go run main.go
GOPATH=$(pwd) go test -test.bench .