Skip to content

Commit 266c70c

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
doc/go1.19: add a release note for 'go list -json=SomeField'
For #29666. Change-Id: I575375fb039e5809b0ed2ce985f6352a61142d63 Reviewed-on: https://go-review.googlesource.com/c/go/+/417595 TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Bryan Mills <[email protected]>
1 parent 558785a commit 266c70c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/go1.19.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ <h3 id="go-command">Go command</h3>
118118
and <code>GOGCCFLAGS</code> variables it reports.
119119
</p>
120120

121+
<p><!-- https://go.dev/issue/29666 -->
122+
<code>go</code> <code>list</code> <code>-json</code> now accepts a
123+
comma-separated list of JSON fields to populate. If a list is specified,
124+
the JSON output will include only those fields, and
125+
<code>go</code> <code>list</code> may avoid work to compute fields that are
126+
not included. In some cases, this may suppress errors that would otherwise
127+
be reported.
128+
</p>
129+
121130
<p><!-- CL 410821 -->
122131
The <code>go</code> command now caches information necessary to load some modules,
123132
which should result in a speed-up of some <code>go</code> <code>list</code> invocations.

0 commit comments

Comments
 (0)