Last active
February 12, 2023 10:28
-
-
Save JohnAllen/7cc10934931efff1e88d919084f1f29b to your computer and use it in GitHub Desktop.
install Go for Linux
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
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz | |
sudo tar -xvf go1.19.linux-amd64.tar.gz | |
sudo mv go /usr/local/go | |
export GOROOT=/usr/local/go | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
echo "GOROOT=/usr/local/go " >> ~/.bashrc | |
echo "PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment