...

/

Installing Go on Local Machine

Installing Go on Local Machine

Learn to set up Go on local machines.

Technical requirements

The technical requirements for this section are as follows:

  • A computer with an OS supported by the Go tools.

  • An internet connection and web browser to download the Go tools.

The Go compiler and toolset can be found here. Here, we’ll find releases for the macOS, Windows, and Linux platforms for a multitude of computing platforms.

The most common platform is the AMD64 architecture, which should be used for any x86 system. For macOS, it is important to note that if we are using a machine with a non-Intel-based CPU, such as an Apple M1, we’ll need to use the arm64 builds.

In the next sections, we'll describe methods of installing Go for the major OSs. We should skip to the OS we plan to install on.

macOS installation using the package installer

The easiest way to install the Go tooling for macOS is to use a .pkg installer. The download page offers .tar.gz builds and .pkg. With the tarballs, we must unpack the files in a location and add that location to our path. It also means we'll have to handle upgrades manually. We should only do this if we have advanced needs.

The .pkg file makes installation and upgrading simple. Simply double-click the .pkg file and follow the onscreen prompts to install. This may require entering in our credentials at ...