diff --git a/doc/go1.16.html b/doc/go1.16.html index aa70ec8c823..b3166fbaf53 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -872,6 +872,21 @@ func TestFoo(t *testing.T) {
+ The new function
+ WalkDir
+ is similar to
+ Walk
,
+ but is typically more efficient.
+ The function passed to WalkDir
receives a
+ fs.DirEntry
+ instead of a
+ fs.FileInfo
.
+ (To clarify for those who recall the Walk
function
+ as taking an os.FileInfo
,
+ os.FileInfo
is now an alias for fs.FileInfo
.)
+