]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: document reflect changes
authorDamien Neil <dneil@google.com>
Thu, 27 May 2021 01:06:26 +0000 (18:06 -0700)
committerDamien Neil <dneil@google.com>
Thu, 27 May 2021 20:59:35 +0000 (20:59 +0000)
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>
doc/go1.17.html

index 8313c2bc57588e04d07e1bd75dbb907e0a55c7e2..d0a0c0f33f09c1496d9fb58023f24bdee8072086 100644 (file)
@@ -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 -->