brew-go
Manage Go tools via Homebrew. Don't clutter your $GOPATH anymore.
Internally brew-go still relies on go get, but puts things into
/usr/local/Cellar/brew-go-*, builds the binary, removes everything else that
was needed for building, and links the binary to /usr/local/bin/*. All in one
go.
The gem was inspired by this blog post.
Installation
$ gem install brew-go
If you're not a Ruby user, chances are that you use the system's /usr/bin/gem,
which tries installing to a directory that isn't writable by the user. Assuming
you have a local bin directory in $PATH, e.g. ~/bin, use this instead:
$ gem install --user-install -n ~/bin brew-go
Alternatively, just download the script in any directory from $PATH and make it executable.
Usage
See brew go for all available commands.
Example:
$ brew go get guru golang.org/x/perf/cmd/benchstat
[