diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-01-20 18:01:56 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-01-21 23:50:47 +0000 |
commit | 07b023560983db0ea0d82265be68fe5f89d545fe (patch) | |
tree | fe9ab0cfad45eac27ee2a88b97aee13217469281 /doc | |
parent | e2b4f1fea5b0367fd6d687f677f9a8cb9dc252ea (diff) | |
download | go-07b023560983db0ea0d82265be68fe5f89d545fe.tar.gz go-07b023560983db0ea0d82265be68fe5f89d545fe.zip |
doc/go1.16: add notes about package-specific fs.FS changes
For #40700
For #41190
Change-Id: I964d6856d5cad62c859d0f3a7afdd349a8ad87cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/285093
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.16.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/go1.16.html b/doc/go1.16.html index ca07689fc8..c76161432e 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -512,6 +512,16 @@ func TestFoo(t *testing.T) { in mind. </p> +<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt> + <dd> + <p><!-- CL 243937 --> + The new <a href="/pkg/archive/zip/#Reader.Open"><code>Reader.Open</code></a> + method implements the <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a> + interface. + </p> + </dd> +</dl> + <dl id="crypto/dsa"><dt><a href="/pkg/crypto/dsa/">crypto/dsa</a></dt> <dd> <p><!-- CL 257939 --> @@ -675,6 +685,18 @@ func TestFoo(t *testing.T) { </dd> </dl><!-- flag --> +<dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt> + <dd> + <p><!-- CL 243938 --> + The new <a href="/pkg/html/template/#ParseFS"><code>template.ParseFS</code></a> + function and <a href="/pkg/html/template/#Template.ParseFS"><code>template.Template.ParseFS</code></a> + method are like <a href="/pkg/html/template/#ParseGlob"><code>template.ParseGlob</code></a> + and <a href="/pkg/html/template/#Template.ParseGlob"><code>template.Template.ParseGlob</code></a>, + but read the templates from an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>. + </p> + </dd> +</dl><!-- html/template --> + <dl id="io"><dt><a href="/pkg/io/">io</a></dt> <dd> <p><!-- CL 261577 --> @@ -784,6 +806,12 @@ func TestFoo(t *testing.T) { environment variable for <code>https://</code> URLs when <code>HTTPS_PROXY</code> is unset. </p> + + <p><!-- CL 243939 --> + The new <a href="/pkg/net/http/#FS"><code>http.FS</code></a> + function converts an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a> + to an <a href="/pkg/net/http/#Handler"><code>http.Handler</code></a>. + </p> </dd> </dl><!-- net/http --> @@ -915,6 +943,14 @@ func TestFoo(t *testing.T) { Newlines characters are now allowed inside action delimiters, permitting actions to span multiple lines. </p> + + <p><!-- CL 243938 --> + The new <a href="/pkg/text/template/#ParseFS"><code>template.ParseFS</code></a> + function and <a href="/pkg/text/template/#Template.ParseFS"><code>template.Template.ParseFS</code></a> + method are like <a href="/pkg/text/template/#ParseGlob"><code>template.ParseGlob</code></a> + and <a href="/pkg/text/template/#Template.ParseGlob"><code>template.Template.ParseGlob</code></a>, + but read the templates from an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>. + </p> </dd> </dl><!-- text/template --> |