-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp,expand: add support for fs.DirEntry
That is, all of our APIs mirroring the signature of ioutil.ReadDir now gain a "2" sibling with whose signature mirrors os.ReadDir. The original APIs are deprecated, and where both can be set together, the new API takes precedence over the old one. This should lead to minor overhead reductions by default, as well as for any users of the old APIs who switch to the new ones. See the godoc explaining why ioutil.ReadDir, as well as related APIs like filepath.Walk, are deprecated.
- Loading branch information
Showing
4 changed files
with
71 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters