tldr/pages/common/go-version.md

13 lines
242 B
Markdown
Raw Normal View History

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