mirror of
https://github.com/golang/go
synced 2024-09-23 13:20:14 -06: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:
parent
af6123a865
commit
d80d1427a8
@ -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>
|
||||
<dd>
|
||||
<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><!-- CL 281233 -->
|
||||
|
Loading…
Reference in New Issue
Block a user