1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:10:22 -07:00

doc/go1.13: describe 'go env -w'

Change-Id: I0c8c30b40a33763dc34f15d144346eb1a0997df2
Reviewed-on: https://go-review.googlesource.com/c/go/+/183631
Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
Bryan C. Mills 2019-06-24 18:03:57 -04:00
parent a6ad626bac
commit 816ce1a23a

View File

@ -279,6 +279,17 @@ Do not send CLs removing the interior tags from such phrases.
<h3 id="go-command">Go command</h3>
<p id="go-env-w"><!-- CL 171137 -->
The <a href="/cmd/go/#hdr-Environment_variables"><code>go</code> <code>env</code></a>
command now accepts a <code>-w</code> flag to set the per-user default value
of an enviroment variable recognized by the
<code>go</code> command, and a corresponding <code>-u</code> flag to unset a
previously-set default. Defaults set via
<code>go</code> <code>env</code> <code>-w</code> are stored in the
<code>go/env</code> file within
<a href="/pkg/os/#UserConfigDir"><code>os.UserConfigDir()</code></a>.
</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
@ -298,10 +309,6 @@ Do not send CLs removing the interior tags from such phrases.
files may be searched for directives but ignored during build.
</p>
<p><!-- CL 171137 -->
TODO
</p>
<h3 id="compiler">Compiler toolchain</h3>
<p><!-- CL 170448 -->