aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2021-05-07 10:41:24 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2021-05-07 20:44:40 +0000
commitd80d1427a8119eed6e668caba4314140edbcb4b8 (patch)
tree9bc775614b22e1354ebad0636a6311409568ea07 /doc
parentaf6123a865546c8735acc64c344a4e02bd561c0d (diff)
downloadgo-d80d1427a8119eed6e668caba4314140edbcb4b8.tar.gz
go-d80d1427a8119eed6e668caba4314140edbcb4b8.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 3cd324e0ab..894b8ae133 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -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 -->