go-version(1)

go-version1

Print the build information for go executables

Usage

go version [-m] [-v] [file ...]

Overview

Go version reports the Go version used to build each of the named executable files.

If no files are named on the command line, go version prints its own version information.

If a directory is named, go version walks that directory, recursively, looking for recognized Go binaries and reporting their versions. By default, go version does not report unrecognized files found during a directory scan. The -v flag causes it to report unrecognized files.

The -m flag causes go version to print each executable's embedded module version information, when available. In the output, the module information consists of multiple lines following the version line, each indented by a leading tab character.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

Author

This manual page was written by Michael Stapelberg <[email protected]> and is maintained by the Debian Go Compiler Team <[email protected]> based on the output of 'go help version' for the Debian project (and may be used by others).

From gccgo-go 2:1.24~2 in Debian 13 (Trixie). Also shipped by golang-go. Parsed by carta from the page's man source.