Created
June 8, 2018 22:29
-
-
Save sdorsett/1da37d198e8acacbcf6534d5420261ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
cd /root | |
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz | |
tar -zxf go1.10.3.linux-amd64.tar.gz | |
mv go /usr/local/ | |
mkdir -p ~/go/bin | |
mkdir -p ~/go/src | |
mkdir -p ~/go/pkg | |
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc | |
echo 'export GOPATH=$HOME/go' >> ~/.bashrc | |
echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc | |
source ~/.bashrc | |
go version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment