Setup a (modern) Go development environment
Don’t make it more complicated than it needs to be.
- Download the appropriate file for your platform
- Run the installer or extract the archive anywhere
- Add the
./bin
directory to yourPATH
to make thego
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.