func path/filepath.Dir
9 uses
path/filepath (current package)
path.go#L576: func Dir(path string) string {
github.com/go-git/go-billy/v5/osfs
os.go#L46: dir := filepath.Dir(fullpath)
github.com/go-git/go-git/v5
repository.go#L281: if dir := filepath.Dir(path); dir != path {
worktree.go#L911: dir := filepath.Dir(name)
github.com/go-git/go-git/v5/storage/filesystem/dotgit
dotgit.go#L1074: fs := osfs.New(filepath.Dir(path))
github.com/prometheus/client_golang/prometheus
registry.go#L556: tmp, err := ioutil.TempFile(filepath.Dir(filename), filepath.Base(filename))
go/build
build.go#L1136: d := filepath.Dir(parent)
golang.org/x/mod/zip
zip.go#L646: if err := os.MkdirAll(filepath.Dir(dst), 0777); err != nil {
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. |