Skip to content

Instantly share code, notes, and snippets.

@munhitsu
Created December 26, 2014 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munhitsu/156db4314264ca2959fb to your computer and use it in GitHub Desktop.
Save munhitsu/156db4314264ca2959fb to your computer and use it in GitHub Desktop.
install go on OSX
brew install go
brew install git
brew install mercurial
#go code analysis
go get golang.org/x/tools/cmd/vet
#to have offline docs using: godoc -http=:6060
go get golang.org/x/tools/cmd/godoc
#offline tutorials
go get code.google.com/p/go-tour/gotour
mkdir -p $HOME/go
#add to .bash_profile
export GOPATH=$HOME/go
export GOROOT=`go env GOROOT`
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment