]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/fsys: refactor vfs lookup
authorRuss Cox <rsc@golang.org>
Fri, 15 Nov 2024 19:42:27 +0000 (14:42 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 19 Nov 2024 05:42:03 +0000 (05:42 +0000)
commit8767a090d508e3f552dd8962a4f4c0b46ab70980
tree554a4b3adecac7d1006c7a5a293e1c09a9f49686
parent7ded55f941889db8223aca28b319c09d89158ee1
cmd/go/internal/fsys: refactor vfs lookup

Refactor vfs lookup into 'func stat', which knows the internal
data structures for the vfs and returns information about a
given path. The callers can then all use stat and avoid direct
knowledge of the internal data structures.

This is setting up for a different internal data structure.

Change-Id: I496b7b3fb686cdde81b14687f65eb0bf51ec62be
Reviewed-on: https://go-review.googlesource.com/c/go/+/628699
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/fsys/fsys_test.go