]> Cypherpunks.ru repositories - gostls13.git/commit
all: update to use filepath.WalkDir instead of filepath.Walk
authorRuss Cox <rsc@golang.org>
Wed, 4 Nov 2020 23:20:17 +0000 (18:20 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 2 Dec 2020 16:33:57 +0000 (16:33 +0000)
commitc32140fa94cfc51a2152855825f57e27ae3ba133
treeb9777c7aff45d975f55b3987dfa440580bbb8f58
parent0433845ad18a355413033bb3495ba3195f4c69ec
all: update to use filepath.WalkDir instead of filepath.Walk

Now that filepath.WalkDir is available, it is more efficient
and should be used in place of filepath.Walk.
Update the tree to reflect best practices.

As usual, the code compiled with Go 1.4 during bootstrap is excluded.
(In this CL, that's only cmd/dist.)

For #42027.

Change-Id: Ib0f7b1e43e50b789052f9835a63ced701d8c411c
Reviewed-on: https://go-review.googlesource.com/c/go/+/267719
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
17 files changed:
src/cmd/compile/fmt_test.go
src/cmd/dist/test.go
src/cmd/fix/main.go
src/cmd/go/go_test.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/version/version.go
src/cmd/go/testdata/addmod.go
src/cmd/go/testdata/savedir.go
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/long_test.go
src/cmd/internal/moddeps/moddeps_test.go
src/compress/gzip/issue14937_test.go
src/go/build/deps_test.go
src/go/doc/headscan.go
src/index/suffixarray/suffixarray_test.go
test/run.go
test/winbatch.go