func path/filepath.Clean
20 uses
path/filepath (current package)
path.go#L89: func Clean(path string) string {
path.go#L249: return Clean(path), nil
path.go#L269: base := Clean(basepath)
path.go#L270: targ := Clean(targpath)
path.go#L582: dir := Clean(path[len(vol) : i+1])
path_unix.go#L45: return Clean(strings.Join(elem[i:], string(Separator)))
symlink.go#L146: return Clean(dest), nil
github.com/go-git/go-billy/v5/helper/chroot
chroot.go#L38: path = filepath.Clean(path)
chroot.go#L169: target = filepath.Clean(filepath.FromSlash(target))
github.com/go-git/go-billy/v5/osfs
os.go#L111: return os.RemoveAll(filepath.Clean(path))
os.go#L115: return os.Lstat(filepath.Clean(filename))
github.com/kevinburke/ssh_config
config.go#L208: return strings.HasPrefix(filepath.Clean(filename), "/etc/ssh")
go/build
build.go#L174: root = filepath.Clean(root)
build.go#L178: dir = filepath.Clean(dir)
build.go#L283: if filepath.Clean(def) == filepath.Clean(runtime.GOROOT()) {
go/scanner
scanner.go#L279: filename = filepath.Clean(filename)
golang.org/x/pkgsite/internal/licenses
licenses.go#L347: cleanDir := filepath.ToSlash(filepath.Clean(dir))
golang.org/x/pkgsite/internal/symbol
apigodoc.go#L69: apiGlob = filepath.Join(filepath.Clean(runtime.GOROOT()), "api", "go*.txt")
golang.org/x/pkgsite/internal/testing/testhelper
testhelper.go#L113: return filepath.Clean(filepath.Join(filepath.Dir(filename), filepath.FromSlash(rel)))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |