Tags: #go #golang #compile #source
# Note: doing this requires _a_ version of Go to be installed already (e.g. `brew install go`)
# setup
mkdir -p ~/code
cd ~/code
# get source
git clone https://go.googlesource.com/go
cd go
git tag
git checkout go1.11beta2
# compile
cd src
./make.bash
# using the compiled go binary
<open a new shell>
export PATH=~/code/go/bin:$PATH
go version