Last active
April 30, 2024 09:17
-
-
Save pierrelasse/dcaf208289ceb3dbd70e911555b46ae0 to your computer and use it in GitHub Desktop.
Paste the commands into ur terminal and kaboom
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
# This is for linux! | |
GOV=1.22.2 # Go version to install. Find the latest on https://go.dev/dl/ | |
curl -sS https://storage.googleapis.com/golang/go$GOV.linux-amd64.tar.gz > go$GOV.linux-amd64.tar.gz | |
tar xvf go$GOV.linux-amd64.tar.gz | |
rm go$GOV.linux-amd64.tar.gz | |
# You can then run the following command to use go | |
./go$GOV.linux-amd64/go/bin/go | |
# Or install it using these commands | |
sudo mv go /usr/local/go | |
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go | |
sudo ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc | |
sudo ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment