tldr/pages/common/go-version.md

13 lines
242 B
Markdown

# 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}}`