Installing Go
Introduction #
Installing Go is easy enough, especially if you are running on Mac or Linux.
The Golang installation page is your primary reference here.
Which version?
Go has a pretty good backwards compatibility story, which should allow you to always upgrade to the latest and greatest. This makes working with Go a joy, and you don’t have to fear upgrades.
Nevertheless, should you need to run a specific Go version, you can either use docker containers or install specific
versions as outlined here: https://go.dev/doc/manage-install. Then, manage the GOPATH variable to point to the correct go binary.
Install with Mac #
Using Homebrew
| |
Install with Linux, Windows, Other #
- Visit the official downloads page https://go.dev/dl/ and download the correct binary,
- then extract it to a directory of your choice, e.g.
/usr/local/go. - Lastly, ensure that the
gobinary can be found on thePATHvariable.
Install using a Linux package manager #
Snap
| |
Debian/Ubuntu
| |
Summary #
After having installed the go binary, try typing go version to ensure the installation worked correctly
and you have the expected version.
| |



