Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active August 6, 2018 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/af300f602fa4da8cc14863f36a24bd1e to your computer and use it in GitHub Desktop.
Save Integralist/af300f602fa4da8cc14863f36a24bd1e to your computer and use it in GitHub Desktop.
[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