aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2021-05-26 18:06:26 -0700
committerDamien Neil <dneil@google.com>2021-05-27 20:59:35 +0000
commitab2ef4aaa77dff91cd98ded88aeba0bf5b5b2e80 (patch)
tree57e03716632df972de7f8a08ac8e86796ba29e70 /doc
parent0ece95a0feafe151cadf1346464952bb5c95fab3 (diff)
downloadgo-ab2ef4aaa77dff91cd98ded88aeba0bf5b5b2e80.tar.gz
go-ab2ef4aaa77dff91cd98ded88aeba0bf5b5b2e80.zip
doc/go1.17: document reflect changes
For #44513. Fixes #46019. Change-Id: Ica84edd5703a4ccf343ff01e10483f8d51d1c79f Reviewed-on: https://go-review.googlesource.com/c/go/+/323069 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 8313c2bc57..d0a0c0f33f 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -500,11 +500,13 @@ Do not send CLs removing the interior tags from such phrases.
</p>
<p><!-- CL 281233 -->
- TODO: <a href="https://golang.org/cl/281233">https://golang.org/cl/281233</a>: add VisibleFields function
+ The new <a href="/pkg/reflect/#VisibleFields"><code>VisibleFields</code></a> function
+ returns all the visible fields in a struct type, including fields inside anonymous struct members.
</p>
<p><!-- CL 284136 -->
- TODO: <a href="https://golang.org/cl/284136">https://golang.org/cl/284136</a>: panic if ArrayOf is called with negative length
+ The <a href="/pkg/reflect/#ArrayOf"><code>ArrayOf</code></a> function now panics when
+ called with a negative length.
</p>
</dd>
</dl><!-- reflect -->