]> Cypherpunks repositories - gostls13.git/commit
os: use filepathlite.Base
authoraimuz <mr.imuz@gmail.com>
Mon, 6 May 2024 03:57:08 +0000 (03:57 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 7 May 2024 18:44:48 +0000 (18:44 +0000)
commitdc548bb322387039a12000c04e5b9083a0511639
tree080af8f642f95f1376079c3d3cefc5be65ecf2d4
parentc40bb874862b703bf4b3a207dca504989077c180
os: use filepathlite.Base

Replace custom basename implementations with filepathlite.Base across
all relevant os/stat files to unify path processing across platforms.

Change-Id: I7c4795661926949bae71e66d8b4f9363e7caef15
GitHub-Last-Rev: 1236e93ebcd4137f9cbbbab2163cadf4e4d02674
GitHub-Pull-Request: golang/go#67195
Reviewed-on: https://go-review.googlesource.com/c/go/+/583415
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
14 files changed:
src/os/path_unix.go
src/os/path_windows.go
src/os/stat_aix.go
src/os/stat_darwin.go
src/os/stat_dragonfly.go
src/os/stat_freebsd.go
src/os/stat_js.go
src/os/stat_linux.go
src/os/stat_netbsd.go
src/os/stat_openbsd.go
src/os/stat_solaris.go
src/os/stat_wasip1.go
src/os/stat_windows.go
src/os/types_windows.go