зеркало из https://github.com/golang/tools.git
365db56d19
Although ioutil.ReadDir is deprecated, the suggested replacement has a different signature, returning []fs.DirEntry rather than []fs.FileEntry. Some of the places where this occurs are better left referring to ioutil, as build.Config wants the old behavior. (go/buildutil/util.go and godoc/vfs/os.go) When someday build gets updated, these can be easily found, and changed. Some of the place use Mode().IsRegular() (cmd/toolstash/mail.go and internal/fastwalk/fastwal_portable.go) and the code needs a minor adjustment. And, happily, in all the other places one can use os.ReadDir directly as only Name() is called. There are no remaining instances of the generated ioutilReadDir(). Change-Id: I165ca27eafe2fe37fdf14390543b21f7e198281e Reviewed-on: https://go-review.googlesource.com/c/tools/+/528135 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Peter Weinberger <pjw@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
testdata | ||
bexport_test.go | ||
bimport.go | ||
exportdata.go | ||
gcimporter.go | ||
gcimporter_test.go | ||
iexport.go | ||
iexport_common_test.go | ||
iexport_go118_test.go | ||
iexport_test.go | ||
iimport.go | ||
israce_test.go | ||
newInterface10.go | ||
newInterface11.go | ||
shallow_test.go | ||
stdlib_test.go | ||
support_go117.go | ||
support_go118.go | ||
unified_no.go | ||
unified_yes.go | ||
ureader_no.go | ||
ureader_yes.go |