Commit 816ce1a2 authored by Bryan C. Mills's avatar Bryan C. Mills

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

Change-Id: I0c8c30b40a33763dc34f15d144346eb1a0997df2
Reviewed-on: https://go-review.googlesource.com/c/go/+/183631Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
parent a6ad626b
......@@ -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 -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment