From: Ian Lance Taylor
+ The new Reader.Open
+ method implements the fs.FS
+ interface.
+
@@ -675,6 +685,18 @@ func TestFoo(t *testing.T) {
+ 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
.
+
@@ -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
.
+
+ 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
.
+