Install Go and check the toolchain version
Install the official distribution
Open the official installation guide at https://go.dev/doc/install. Select your operating system and the correct processor architecture. Windows uses an MSI installer; macOS offers a package installer; Linux offers an archive with platform-specific setup instructions. Follow the guide rather than mixing two installations in the same directory.
Check from a new terminal
Open a new terminal after installation. A terminal is a text interface for running commands. Type the command below without a prompt symbol.
A successful response contains the Go version, operating system and architecture. For example, the environment used for this lesson reports go version go1.23.2 linux/amd64. Your output may differ. This is a tested version, not a recommendation to install that old version. Use the supported release appropriate for your environment.
If the command is not found
PATH is the list of directories the shell searches for executable commands. If go is not found, reopen the terminal and check the installation guide for PATH setup on your platform. If the reported version is unexpected, check whether another installation is earlier on PATH. Do not copy destructive cleanup commands without checking your own installation.
Try it locally
Run go version in a new terminal. Record the version and target shown; compare the shape, not the exact version, with the example.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Getting Started 03: Install Go and check the toolchain version
Check the lesson objective before moving on.
What does a successful go version demonstrate?
What is a sensible first check if go is not found just after installation?