Last active
August 6, 2018 09:14
-
-
Save Integralist/af300f602fa4da8cc14863f36a24bd1e to your computer and use it in GitHub Desktop.
[Build Go from source] #go #golang #compile #source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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