Created
October 11, 2021 00:53
-
-
Save RPTST/53704095f6f1a245224e23e13fe46cbd to your computer and use it in GitHub Desktop.
Swbian Go lang install
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
mkdir ~/projects | |
cd ~/projects | |
curl -O https://dl.google.com/go/go1.17.2.linux-amd64.tar.gz | |
tar xvf go1.12.7.linux-amd64.tar.gz | |
sudo chown -R root:root ./go | |
sudo mv go /usr/local | |
nano ~/.profile | |
# add the following lines to the end of the file | |
export GOPATH=$HOME/work | |
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | |
# reset env varibles | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment