Skip to content

Commit 07b0235

Browse files
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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent e2b4f1f commit 07b0235

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

doc/go1.16.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
512512
in mind.
513513
</p>
514514

515+
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
516+
<dd>
517+
<p><!-- CL 243937 -->
518+
The new <a href="/pkg/archive/zip/#Reader.Open"><code>Reader.Open</code></a>
519+
method implements the <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>
520+
interface.
521+
</p>
522+
</dd>
523+
</dl>
524+
515525
<dl id="crypto/dsa"><dt><a href="/pkg/crypto/dsa/">crypto/dsa</a></dt>
516526
<dd>
517527
<p><!-- CL 257939 -->
@@ -675,6 +685,18 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
675685
</dd>
676686
</dl><!-- flag -->
677687

688+
<dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
689+
<dd>
690+
<p><!-- CL 243938 -->
691+
The new <a href="/pkg/html/template/#ParseFS"><code>template.ParseFS</code></a>
692+
function and <a href="/pkg/html/template/#Template.ParseFS"><code>template.Template.ParseFS</code></a>
693+
method are like <a href="/pkg/html/template/#ParseGlob"><code>template.ParseGlob</code></a>
694+
and <a href="/pkg/html/template/#Template.ParseGlob"><code>template.Template.ParseGlob</code></a>,
695+
but read the templates from an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>.
696+
</p>
697+
</dd>
698+
</dl><!-- html/template -->
699+
678700
<dl id="io"><dt><a href="/pkg/io/">io</a></dt>
679701
<dd>
680702
<p><!-- CL 261577 -->
@@ -784,6 +806,12 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
784806
environment variable for <code>https://</code> URLs when
785807
<code>HTTPS_PROXY</code> is unset.
786808
</p>
809+
810+
<p><!-- CL 243939 -->
811+
The new <a href="/pkg/net/http/#FS"><code>http.FS</code></a>
812+
function converts an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>
813+
to an <a href="/pkg/net/http/#Handler"><code>http.Handler</code></a>.
814+
</p>
787815
</dd>
788816
</dl><!-- net/http -->
789817

@@ -915,6 +943,14 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
915943
Newlines characters are now allowed inside action delimiters,
916944
permitting actions to span multiple lines.
917945
</p>
946+
947+
<p><!-- CL 243938 -->
948+
The new <a href="/pkg/text/template/#ParseFS"><code>template.ParseFS</code></a>
949+
function and <a href="/pkg/text/template/#Template.ParseFS"><code>template.Template.ParseFS</code></a>
950+
method are like <a href="/pkg/text/template/#ParseGlob"><code>template.ParseGlob</code></a>
951+
and <a href="/pkg/text/template/#Template.ParseGlob"><code>template.Template.ParseGlob</code></a>,
952+
but read the templates from an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>.
953+
</p>
918954
</dd>
919955
</dl><!-- text/template -->
920956

0 commit comments

Comments
 (0)