Go CLI Cheat Sheet/Print Go version

Show the selected Go toolchain version.

Section: Getting Started

Print Go version

bash
bash
go version
Explanation

Show the selected Go toolchain version. Useful in Go CLI workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Getting Started
Print Go environment
Inspect Go environment variables and effective values.
OpenIn sheetbashsame section
Print Go environment as JSON
Useful for scripting and debugging setup.
OpenIn sheetbashsame section
Show help
Show top-level go command help.
OpenIn sheetbashsame section
Help for build
Show detailed help for go build flags and behavior.
OpenIn sheetbashsame section
Run program
Compile and run the current module entrypoint.
OpenIn sheetbash1 tag match
Format package sources
Run gofmt across package sources.
OpenIn sheetbash1 tag match