Download a c_code 'go1.4-bootstrap-20171003.tar.gz' file, extract it, I assume it is $HOME/CS/go2
In ~/.bashrc
:
export GOROOT_BOOTSTRAP="$HOME/CS/go2"
Clone this repository, extract it, I assume it is $HOME/CS/go
In ~/.bashrc
:
export PATH="$PATH:$HOME/CS/go/bin"
Then, compile it by:
cd ~/CS/go/src
./all.bash
source ~/.bashrc
go version
Great, now you have your own golang compiler.