mirror of
https://github.com/golang/go
synced 2024-11-13 13:11:07 -07:00
doc/go1.16: fix WalkDir and Walk links
Reported by Ben on golang-dev: https://groups.google.com/g/golang-dev/c/gsoj5Vv15j0/m/XR9CYSRkAgAJ For #40700. Change-Id: If4702cf0e9858aaef99c231251dc646a67d1026e Reviewed-on: https://go-review.googlesource.com/c/go/+/285718 Trust: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
This commit is contained in:
parent
b634f5d97a
commit
044f937a73
@ -895,9 +895,9 @@ func TestFoo(t *testing.T) {
|
|||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 267887 -->
|
<p><!-- CL 267887 -->
|
||||||
The new function
|
The new function
|
||||||
<a href="/pkg/path/filepath/WalkDir"><code>WalkDir</code></a>
|
<a href="/pkg/path/filepath/#WalkDir"><code>WalkDir</code></a>
|
||||||
is similar to
|
is similar to
|
||||||
<a href="/pkg/path/filepath/Walk"><code>Walk</code></a>,
|
<a href="/pkg/path/filepath/#Walk"><code>Walk</code></a>,
|
||||||
but is typically more efficient.
|
but is typically more efficient.
|
||||||
The function passed to <code>WalkDir</code> receives a
|
The function passed to <code>WalkDir</code> receives a
|
||||||
<a href="/pkg/io/fs/#DirEntry"><code>fs.DirEntry</code></a>
|
<a href="/pkg/io/fs/#DirEntry"><code>fs.DirEntry</code></a>
|
||||||
|
Loading…
Reference in New Issue
Block a user