]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: mention os.DirFS in os section
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Jan 2021 01:58:17 +0000 (17:58 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 25 Jan 2021 23:54:44 +0000 (23:54 +0000)
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>
doc/go1.16.html

index e1e8c7a8338cc0068958e890f37c8869f897ad64..7ddb4a935ec1c860615e2b716c09b7dd65840102 100644 (file)
@@ -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 -->