1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:21:37 -07:00

doc/go1.17: fill in TODO for reflect package

Updates #46019

Change-Id: I3025927d949ff72535542e89b83dd830e969c255
Reviewed-on: https://go-review.googlesource.com/c/go/+/318011
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Joe Tsai 2021-05-07 10:41:24 -07:00 committed by Joe Tsai
parent af6123a865
commit d80d1427a8

View File

@ -405,7 +405,13 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt> <dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt>
<dd> <dd>
<p><!-- CL 266197 --> <p><!-- CL 266197 -->
TODO: <a href="https://golang.org/cl/266197">https://golang.org/cl/266197</a>: add Method.IsExported and StructField.IsExported methods The new
<a href="/pkg/reflect/#StructField.IsExported"><code>StructField.IsExported</code></a>
and
<a href="/pkg/reflect/#Method.IsExported"><code>Method.IsExported</code></a>
methods report whether a struct field or type method is exported.
They provide a more readable alternative to checking whether <code>PkgPath</code>
is empty.
</p> </p>
<p><!-- CL 281233 --> <p><!-- CL 281233 -->