aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-01-21 17:58:17 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-25 23:54:44 +0000
commitbf0f7c9d78fa28320a2c60d5a6d1956acfae4a89 (patch)
tree44978dbce339c13e0f12def8303ee14d5e1ba8af /doc
parentdeaf29a8a8ab76613bf0d5d97c4e31bfbdc4c4e9 (diff)
downloadgo-bf0f7c9d78fa28320a2c60d5a6d1956acfae4a89.tar.gz
go-bf0f7c9d78fa28320a2c60d5a6d1956acfae4a89.zip
doc/go1.16: mention os.DirFS in os section
For #40700 For #41190 Change-Id: I8ade6efd5be09003fc3e5db5a9b91ba6e0f023f7 Reviewed-on: https://go-review.googlesource.com/c/go/+/285593 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.16.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/go1.16.html b/doc/go1.16.html
index e1e8c7a833..7ddb4a935e 100644
--- a/doc/go1.16.html
+++ b/doc/go1.16.html
@@ -982,6 +982,13 @@ func TestFoo(t *testing.T) {
<a href="/pkg/io/fs/"><code>io/fs</code></a> package.
This should not affect any existing code.
</p>
+
+ <p><!-- CL 243911 -->
+ The new <a href="/pkg/os/#DirFS"><code>DirFS</code></a> function
+ provides an implementation of
+ <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a> backed by a tree
+ of operating system files.
+ </p>
</dd>
</dl><!-- os -->