func path.Dir
24 uses
path (current package)
path.go#L230: func Dir(path string) string {
archive/zip
reader.go#L678: for dir := path.Dir(name); dir != "."; dir = path.Dir(dir) {
github.com/evanw/esbuild/internal/fs
fs_mock.go#L29: kDir := path.Dir(k)
fs_mock.go#L79: return path.Dir(p)
github.com/evanw/esbuild/pkg/api
serve_other.go#L370: parentDir := path.Dir(queryPath)
golang.org/x/mod/zip
zip.go#L707: if parent := path.Dir(p); parent != "." {
golang.org/x/pkgsite/internal
paths.go#L33: for p := fullPath; p != "." && p != "/"; p = path.Dir(p) {
golang.org/x/pkgsite/internal/fetch
package.go#L120: innerPath := path.Dir(f.Name[len(modulePrefix):])
readme.go#L37: key := path.Dir(f)
unit.go#L29: if path.Dir(readme.Filepath) == "." {
unit.go#L32: readmeLookup[path.Dir(readme.Filepath)] = readme
unit.go#L34: readmeLookup[path.Join(modulePath, path.Dir(readme.Filepath))] = readme
unit.go#L85: for p := p.path; shouldContinue(p); p = path.Dir(p) {
golang.org/x/pkgsite/internal/frontend
breadcrumb.go#L54: for dir := pkgPath; len(dir) > minLen && len(path.Dir(dir)) < len(dir); dir = path.Dir(dir) {
overview.go#L154: destPath := path.Join(path.Dir(readme.Filepath), path.Clean(trimmedEscapedPath(destURL)))
golang.org/x/pkgsite/internal/licenses
licenses.go#L390: prefix := path.Dir(l.FilePath)
licenses.go#L425: if which == RootFiles && path.Dir(f.Name) != cdir {
licenses.go#L429: if which == NonRootFiles && path.Dir(f.Name) == cdir {
golang.org/x/pkgsite/internal/localdatasource
datasource.go#L181: for modulePath := pkgPath; modulePath != "" && modulePath != "."; modulePath = path.Dir(modulePath) {
golang.org/x/pkgsite/internal/postgres
licenses.go#L68: licensePath := path.Join(modulePath, path.Dir(l.FilePath))
golang.org/x/pkgsite/internal/testing/sample
sample.go#L252: for pth := pkg.Path; len(pth) > minLen; pth = path.Dir(pth) {
sample.go#L311: dir := path.Dir(lic.FilePath)
![]() |
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. |