Skip to content

Instantly share code, notes, and snippets.

@sibukixxx
Created September 30, 2019 05:19
Show Gist options
  • Select an option

  • Save sibukixxx/295858db5127cfab12d84cc59d09bf82 to your computer and use it in GitHub Desktop.

Select an option

Save sibukixxx/295858db5127cfab12d84cc59d09bf82 to your computer and use it in GitHub Desktop.
#!/bin/bash
GO_ZIPFILE=go1.13.1.linux-amd64.tar.gz
GO_URL="https://dl.google.com/go/" + ${GO_ZIPFILE}
cd ~
wget ${GO_URL}
tar -xvf ${GO_ZIPFILE}
mv ~/go /usr/local/
echo "export GOROOT=/usr/local/go/" >> ~/.bashrc
echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$GOROOT/bin:$GOPATH/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment