Setting up Golang with Fish and Homebrew

Install Golang with Homebrew

Install Mercurial (optional)

I’m not sure if Mercurial is strictly required, but may be useful for fetching packages from certain Mercurial repositories:

$ brew install hg

Set $GOPATH and add to path

In the world of Golang, all your Go projects live in a single directory which is specified by the GOPATH environment variable. This is quite different from development environments in other languages, but you should get used to it.

If you’re not sure where to put your GOPATH, I’d suggest putting it in the home directory: