From: Ian Lance Taylor Date: Thu, 21 Jan 2021 02:01:56 +0000 (-0800) Subject: doc/go1.16: add notes about package-specific fs.FS changes X-Git-Tag: go1.16rc1~44 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=07b023560983db0ea0d82265be68fe5f89d545fe;p=gostls13.git 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 Reviewed-by: Dmitri Shuralyov --- 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.

+
archive/zip
+
+

+ The new Reader.Open + method implements the fs.FS + interface. +

+
+
+
crypto/dsa

@@ -675,6 +685,18 @@ func TestFoo(t *testing.T) {

+
html/template
+
+

+ The new template.ParseFS + function and template.Template.ParseFS + method are like template.ParseGlob + and template.Template.ParseGlob, + but read the templates from an fs.FS. +

+
+
+
io

@@ -784,6 +806,12 @@ func TestFoo(t *testing.T) { environment variable for https:// URLs when HTTPS_PROXY is unset.

+ +

+ The new http.FS + function converts an fs.FS + to an http.Handler. +

@@ -915,6 +943,14 @@ func TestFoo(t *testing.T) { Newlines characters are now allowed inside action delimiters, permitting actions to span multiple lines.

+ +

+ The new template.ParseFS + function and template.Template.ParseFS + method are like template.ParseGlob + and template.Template.ParseGlob, + but read the templates from an fs.FS. +