Installing Go
Download Go
Install the current stable release from go.dev or your operating system package manager. The install provides the go command.
Check the version
Open a new terminal after installing and ask Go for its version.
go version
See the environment
go env shows where Go stores tools and modules. GOPATH and the module cache matter later.
go env GOROOT GOPATH
Fix common install issues
- Reopen the terminal so PATH updates apply
- On Linux/macOS, ensure the Go
bindirectory is on PATH - Windows installers usually update PATH automatically
- Use the official installer when package managers ship an older version
Comments
One comment per signed-in account. Comments are saved with this page’s URL.