Reference
Google Image Swirlhttp://image-swirl.googlelabs.com/
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
export GOBIN=$GOROOT/bin
# aptitude install mercurial
$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT
requesting all changes
adding changesets
adding manifests
adding file changes
added 4109 changesets with 17125 changes to 2968 files
updating working directory
1676 files updated, 0 files merged, 0 files removed, 0 files unresolved
3. ビルド環境の整備
$ sudo aptitude install bison gcc libc6-dev ed make
4. ビルド
$ cd $GOROOT/src
$ ./all.bash
...
--- cd ../test
1 known bugs; 0 unexpected bugs
include $(GOROOT)/src/Make.$(GOARCH)
TARG=godoc
GOFILES=\
godoc.go\
index.go\
main.go\
snippet.go\
spec.go\
include $(GOROOT)/src/Make.cmd
$ ln -s "$GOROOT/misc/vim/go.vim" ~/.vim/syntax/go.vim
$HOME/.vim/filetype.vim
au BufRead,BufNewFile *.go setf go