Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Build Go from source] #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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.