From: Ian Lance Taylor
+ The package defines a new type
+ DirEntry
+ as an alias for fs.DirEntry.
+ The new ReadDir
+ function and the new
+ File.ReadDir
+ method can be used to read the contents of a directory into a
+ slice of DirEntry.
+ The File.Readdir
+ method (note the lower case d in dir)
+ still exists, returning a slice of
+ FileInfo, but for
+ most programs it will be more efficient to switch to
+ File.ReadDir.
+
The package now defines
CreateTemp,
@@ -953,6 +970,18 @@ func TestFoo(t *testing.T) {
to be used instead of functions defined in the
io/ioutil package.
+ The types FileInfo,
+ FileMode, and
+ PathError
+ are now aliases for types of the same name in the
+ io/fs package.
+ Function signatures in the os
+ package have been updated to refer to the names in the
+ io/fs package.
+ This should not affect any existing code.
+