Skip to content

Instantly share code, notes, and snippets.

@pierrelasse
Last active April 30, 2024 09:17
Show Gist options
  • Save pierrelasse/dcaf208289ceb3dbd70e911555b46ae0 to your computer and use it in GitHub Desktop.
Save pierrelasse/dcaf208289ceb3dbd70e911555b46ae0 to your computer and use it in GitHub Desktop.
Paste the commands into ur terminal and kaboom
# 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