tools/internal/gcimporter
Peter Weinberger 365db56d19 tools: clean up after removing all references to ioutil
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>
2023-09-18 16:47:49 +00:00
..
testdata internal/gcimporter: improve error handling 2023-05-15 19:46:39 +00:00
bexport_test.go go/gcexportdata: drop support for the ancient binary format 2023-05-12 19:05:24 +00:00
bimport.go go/gcexportdata: drop support for the ancient binary format 2023-05-12 19:05:24 +00:00
exportdata.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
gcimporter.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
gcimporter_test.go tools: clean up after removing all references to ioutil 2023-09-18 16:47:49 +00:00
iexport.go internal/gcimporter: remove bug report on objectpath failure 2023-08-02 17:46:59 +00:00
iexport_common_test.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
iexport_go118_test.go all: fix remaining tests on js/wasm 2023-04-20 21:20:13 +00:00
iexport_test.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
iimport.go internal/gcimporter: another workaround for race to interface type set 2023-07-25 16:08:43 +00:00
israce_test.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
newInterface10.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
newInterface11.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
shallow_test.go internal/gcimporter: supporting encoding objects from different packages 2023-07-13 22:13:28 +00:00
stdlib_test.go internal/gcimporter: adjust the number of expected packages in TestStdlib 2022-11-22 22:01:52 +00:00
support_go117.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
support_go118.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
unified_no.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
unified_yes.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
ureader_no.go internal/gcimporter: moved from go/internal/gcimporter 2022-11-04 15:23:56 +00:00
ureader_yes.go internal/gcimporter: improve error handling 2023-05-15 19:46:39 +00:00