Created
September 30, 2019 05:19
-
-
Save sibukixxx/295858db5127cfab12d84cc59d09bf82 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/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