mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
9caaac2c92
commit
fc26cbacff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue