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)))