Skip to content

Instantly share code, notes, and snippets.

@sdorsett
Created June 8, 2018 22:29
Show Gist options
  • Save sdorsett/1da37d198e8acacbcf6534d5420261ce to your computer and use it in GitHub Desktop.
Save sdorsett/1da37d198e8acacbcf6534d5420261ce to your computer and use it in GitHub Desktop.
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