tldr/pages/common/go-version.md

242 B

go version

Print Go version. More information: https://golang.org/cmd/go/#hdr-Print_Go_version.

  • Print Go version:

go version

  • Print the Go version used to build the named executable file:

go version {{path/to/executable}}