Last active
March 9, 2019 05:48
-
-
Save krsna1729/9c5094df4aa304f0b554d87bf6dcd68b to your computer and use it in GitHub Desktop.
install go
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
sudo su | |
GO_VER=1.12 | |
wget https://dl.google.com/go/go${GO_VER}.linux-amd64.tar.gz && \ | |
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz | |
echo 'export PATH="$PATH:/usr/local/go/bin"' | tee -a /etc/profile | |
echo 'export GOPATH="$HOME/go"' | tee -a /etc/profile | |
echo 'export PATH="$PATH:$GOPATH/bin"' | tee -a /etc/profile | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment