go version

The go subcommand that prints the installed Go release together with the operating system and processor it builds for by default.

In more detail

Running go version is the quickest way to confirm an install worked. Its output, such as go1.23.12 linux/arm64, also tells you the default target platform. Record it beside a release binary so you know which toolchain produced it.

Example

go version

Related terms

Taught in

References