]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.13: describe new 'go version' behavior
authorJay Conrod <jayconrod@google.com>
Wed, 26 Jun 2019 19:21:38 +0000 (15:21 -0400)
committerJay Conrod <jayconrod@google.com>
Wed, 26 Jun 2019 20:10:05 +0000 (20:10 +0000)
Change-Id: I18e2546f89e68e77d6e829acc997851751a44f0c
Reviewed-on: https://go-review.googlesource.com/c/go/+/183983
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
doc/go1.13.html

index 261af129451d58865915402f8543cf5795305ddf..9873978cc32e5c7c76756c5865b14e59feda170e 100644 (file)
@@ -359,6 +359,18 @@ go env -w GOSUMDB=off
   <a href="/pkg/os/#UserConfigDir"><code>os.UserConfigDir()</code></a>.
 </p>
 
+<p id="go-version-exe"><!-- CL 173343 -->
+  The <a href="/cmd/go/#hdr-Print_Go_version">
+  <code>go</code> <code>version</code></a> command now accepts arguments naming
+  executables and directories. When invoked on an executable,
+  <code>go</code> <code>version</code> prints the version of Go used to build
+  the executable. If the <code>-m</code> flag is used,
+  <code>go</code> <code>version</code> prints the executable's embedded module
+  version information, if available. When invoked on a directory,
+  <code>go</code> <code>version</code> prints information about executables
+  contained in the directory and its subdirectories.
+</p>
+
 <p id="trimpath"><!-- CL 173345 -->
   The new <a href="/cmd/go/#hdr-Compile_packages_and_dependencies"><code>go</code>
   <code>build</code> flag</a> <code>-trimpath</code> removes all file system paths