Personal Go install

December 2, 2013

programming

With golang 1.2, both godoc and go vet are removed from the main repository. Here is a super short list of commands (that I personally use) to install Go and both tools.

export GOBIN=~/bin
export GOPATH=~/g
mkdir -p ~/upstream
mkdir -p ~/g
cd ~/upstream
hg clone https://code.google.com/p/go/
hg update release
cd src
./all.bash
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
go get code.google.com/p/go.tools/cmd/cover
Golang