Setup a (modern) Go development environment

Don’t make it more complicated than it needs to be.

Setup a (modern) Go development environment
Photo by Lukáš Vaňátko / Unsplash
  1. Download the appropriate file for your platform
  2. Run the installer or extract the archive anywhere
  3. Add the ./bin directory to your PATH to make the go command available.

You're done! Don't tinker with environment variables like GOPATH, GOROOT, or anything else, you don't need them. If you want to check the values inferred for these variables, use go env [var ...].

Detailed installation instructions and downloads are available in the docs.