Created
March 30, 2020 18:40
-
-
Save securibee/b27a608fa8f896b00bb55ae6b80bd627 to your computer and use it in GitHub Desktop.
Install Golang
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
versionGo="1.13"; | |
sudo rm -rf /usr/local/go; | |
wget -q -P tmp/ https://dl.google.com/go/go"${versionGo}".linux-amd64.tar.gz; | |
sudo tar -C /usr/local -xzf tmp/go"${versionGo}".linux-amd64.tar.gz; | |
rm -rf tmp/; | |
#~/bashrc | |
# Go Global variables | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/go | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment