mirror of
https://github.com/golang/go
synced 2024-11-22 14:44:50 -07:00
doc/go1.21: document that os.DirFS implements fs.Read{File,Dir}FS
Also add a missing </a> in the preceding section. For #53761 Change-Id: I8e64b86b5b32067f954d58cf9adf86cb4d2eeb2b Reviewed-on: https://go-review.googlesource.com/c/go/+/499735 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Eli Bendersky <eliben@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Eli Bendersky <eliben@google.com>
This commit is contained in:
parent
b100e127ca
commit
b25dff2efe
@ -771,10 +771,19 @@ Do not send CLs removing the interior tags from such phrases.
|
||||
<a href="/pkg/io/fs/#DirEntry"><code>io/fs.DirEntry</code></a>
|
||||
interface returned by the
|
||||
<a href="/pkg/os/#ReadDir"><code>ReadDir</code></a> function and
|
||||
the <a href="/pkg/os/#File.ReadDir"><code>File.ReadDir</code>
|
||||
the <a href="/pkg/os/#File.ReadDir"><code>File.ReadDir</code></a>
|
||||
method now implements a <code>String</code> method that calls
|
||||
<a href="/pkg/io/fs/#FormatDirEntry"><code>io/fs.FormatDirEntry</code></a>.
|
||||
</p>
|
||||
|
||||
<p><!-- https://go.dev/issue/53761, CL 416775, CL 498015-->
|
||||
The implementation of the
|
||||
<a href="/pkg/io/fs/#FS"><code>io/fs.FS</code></a> interface returned by
|
||||
the <a href="/pkg/os/#DirFS"><code>DirFS</code></a> function now implements
|
||||
the <a href="/pkg/io/fs/#ReadFileFS"><code>io/fs.ReadFileFS</code></a> and
|
||||
the <a href="/pkg/io/fs/#ReadDirFS"><code></code>ios/fs.ReadDirFS</a>
|
||||
interfaces.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- os -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user