Skip to content

Instantly share code, notes, and snippets.

@sorawit
Last active February 18, 2020 13:27
Show Gist options
  • Save sorawit/9c4b98ff5392e7925ac44e9de7e6526f to your computer and use it in GitHub Desktop.
Save sorawit/9c4b98ff5392e7925ac44e9de7e6526f to your computer and use it in GitHub Desktop.
apt-get update -y
apt-get upgrade -y
apt-get install -y build-essential git wget curl jq
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/
echo "export GOROOT=/usr/local/go" >> ~/.bashrc
echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
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