diff options
| author | Jay Conrod <jayconrod@google.com> | 2019-06-26 15:21:38 -0400 |
|---|---|---|
| committer | Jay Conrod <jayconrod@google.com> | 2019-06-26 20:10:05 +0000 |
| commit | fc26cbacff12a2f81ab3cb4c55c00dfd0e8bb8ff (patch) | |
| tree | 420a3fc37ea2146ed7d654effbca806586e25881 | |
| parent | 9caaac2c92f866383b52fca544b9871acf5fda1c (diff) | |
| download | go-fc26cbacff12a2f81ab3cb4c55c00dfd0e8bb8ff.tar.xz | |
doc/go1.13: describe new 'go version' behavior
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>
| -rw-r--r-- | doc/go1.13.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/go1.13.html b/doc/go1.13.html index 261af12945..9873978cc3 100644 --- a/doc/go1.13.html +++ b/doc/go1.13.html @@ -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 |
