]> Cypherpunks repositories - gostls13.git/commit
path/filepath, internal/filepathlite: move parts of filepath to filepathlite
authorDamien Neil <dneil@google.com>
Wed, 24 Apr 2024 17:58:56 +0000 (10:58 -0700)
committerDamien Neil <dneil@google.com>
Fri, 26 Apr 2024 23:07:50 +0000 (23:07 +0000)
commitceef0633b3c5bbf5d17a12d6e663c136b30b3f36
tree612eb4650548318aa416086f910570ed77440cdd
parentad22356ec660844ec43ccbe9a834845f1a6f7cf8
path/filepath, internal/filepathlite: move parts of filepath to filepathlite

The path/filepath package needs to depend on the os package to
implement Abs, Walk, and other functions. Move the implementation
of purely lexical functions from path/filepath into
internal/filepathlite, so they can be used by os and
other low-level packages.

Change-Id: Id211e547d6f1f58c82419695ff2d75cd6cd14a12
Reviewed-on: https://go-review.googlesource.com/c/go/+/566556
Reviewed-by: Behroz Karimpor <behrozkarimpor201@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/filepathlite/path.go
src/internal/filepathlite/path_nonwindows.go [moved from src/path/filepath/path_nonwindows.go with 91% similarity]
src/internal/filepathlite/path_plan9.go
src/internal/filepathlite/path_unix.go
src/internal/filepathlite/path_windows.go
src/path/filepath/match.go
src/path/filepath/path.go
src/path/filepath/path_plan9.go
src/path/filepath/path_unix.go
src/path/filepath/path_windows.go
src/path/filepath/symlink.go