Skip to content

Instantly share code, notes, and snippets.

@Jabbslad
Created September 3, 2014 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Jabbslad/5a41c96ad371345064bb to your computer and use it in GitHub Desktop.
Save Jabbslad/5a41c96ad371345064bb to your computer and use it in GitHub Desktop.
Setup Golang
brew install go
mkdir $HOME/go
echo -e "
export GOPATH=$HOME/go
export GOROOT=$(go env GOROOT)
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin" >> $HOME/.bash_profile
brew install hg
source $HOME/.bash_profile
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment