Last active
February 18, 2020 13:27
-
-
Save sorawit/9c4b98ff5392e7925ac44e9de7e6526f to your computer and use it in GitHub Desktop.
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
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