Skip to content

Instantly share code, notes, and snippets.

@securibee
Created March 30, 2020 18:40
Show Gist options
  • Save securibee/b27a608fa8f896b00bb55ae6b80bd627 to your computer and use it in GitHub Desktop.
Save securibee/b27a608fa8f896b00bb55ae6b80bd627 to your computer and use it in GitHub Desktop.
Install Golang
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