Skip to content

Instantly share code, notes, and snippets.

@sorawit
Created February 11, 2020 12:45
Show Gist options
  • Save sorawit/da79e6b005b27b2f62cde7a4354297d2 to your computer and use it in GitHub Desktop.
Save sorawit/da79e6b005b27b2f62cde7a4354297d2 to your computer and use it in GitHub Desktop.
apt-get update -y
apt-get upgrade -y
apt-get install -y build-essential
wget https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
tar -xvf go1.13.7.linux-amd64.tar.gz
mv go /usr/local/
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source ~/.profile
go version
You should see go version go1.13.7 linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment