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 versionRelated terms
- go command — The single command-line program that ships with Go and builds, runs, tests, formats and documents your code through subcommands.
- GOOS and GOARCH — The two Go settings that choose the target operating system and processor family a build produces a binary for.
- toolchain — A set of programs that work together to get one job done, such as building and running software.
Taught in
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Installing the Go Toolchain — Concurrent Systems Programming with Go
- Building Static Binaries — Concurrent Systems Programming with Go