Skip to content

Commit bf0f7c9

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/go1.16.html

+7
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,13 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
982982
<a href="/pkg/io/fs/"><code>io/fs</code></a> package.
983983
This should not affect any existing code.
984984
</p>
985+
986+
<p><!-- CL 243911 -->
987+
The new <a href="/pkg/os/#DirFS"><code>DirFS</code></a> function
988+
provides an implementation of
989+
<a href="/pkg/io/fs/#FS"><code>fs.FS</code></a> backed by a tree
990+
of operating system files.
991+
</p>
985992
</dd>
986993
</dl><!-- os -->
987994

0 commit comments

Comments
 (0)