aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-01-30 17:06:31 -0800
committerIan Lance Taylor <iant@golang.org>2020-01-31 02:45:04 +0000
commit817c5c4517855314dd67fb48041c9a570538fbc2 (patch)
tree7cbcb73f76842f17f57dfb55ee61a1fa36a19352
parent25d0ffe603885a9c42400b35cb39e93a56a7aa95 (diff)
downloadgo-817c5c4517855314dd67fb48041c9a570538fbc2.tar.gz
go-817c5c4517855314dd67fb48041c9a570538fbc2.zip
doc/go1.14: mention go/doc.NewFromFiles and associated new data fields
Updates #23864 Updates #36878 Change-Id: I6efdaafbe5207c625643f201a5931ad735941365 Reviewed-on: https://go-review.googlesource.com/c/go/+/217125 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--doc/go1.14.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/go1.14.html b/doc/go1.14.html
index 1f13f227b3..949b3d9383 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -482,6 +482,26 @@ TODO
</dl><!-- encoding/json -->
+<dl id="go/doc"><dt><a href="/go/doc/">go/doc</a></dt>
+ <dd>
+ <p><!-- CL 204830 -->
+ The new
+ function <a href="/pkg/go/doc/#NewFromFiles"><code>NewFromFiles</code></a>
+ computes package documentation from a list
+ of <code>*ast.File</code>'s and associates examples with the
+ appropriate package elements.
+ The new information is available in a new <code>Examples</code>
+ field
+ in the <a href="/pkg/go/doc/#Package"><code>Package</code></a>, <a href="/pkg/go/doc/#Type"><code>Type</code></a>,
+ and <a href="/pkg/go/doc/#Func"><code>Func</code></a> types, and a
+ new <a href="/pkg/go/doc/#Example.Suffix"><code>Suffix</code></a>
+ field in
+ the <a href="/pkg/go/doc/#Example"><code>Example</code></a>
+ type.
+ </p>
+ </dd>
+</dl><!-- go/doc -->
+
<dl id="mime"><dt><a href="/pkg/mime/">mime</a></dt>
<dd>
<p><!-- CL 186927 -->