logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

go-version - print the build information for Go executables

Author

       This manual page was written by Michael Stapelberg  <stapelberg@debian.org>  and  is  maintained  by  the
       Debian  Go  Compiler  Team <team+go-compiler@tracker.debian.org> based on the output of 'go help version'
       for the Debian project (and may be used by others).

                                                   2021-09-06                                      GO-VERSION(1)

Description

       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.

Name

       go-version - print the build information for Go executables

See Also

       go doc runtime/debug.BuildInfo.

Synopsis

goversion [-m] [-v] [file...]

See Also