func path.Base
37 uses
path (current package)
path.go#L199: func Base(path string) string {
archive/zip
struct.go#L150: func (fi headerFileInfo) Name() string { return path.Base(fi.fh.Name) }
contrib.go.opencensus.io/exporter/stackdriver
stackdriver.go#L362: res.Labels[stackdriverGenericTaskJob] = path.Base(os.Args[0])
github.com/evanw/esbuild/internal/bundler
linker.go#L4024: sourceMapBaseName = path.Base(relPath)
linker.go#L4060: chunk.baseNameOrEmpty = path.Base(relPath)
linker.go#L4305: chunk.baseNameOrEmpty = path.Base(relPath)
github.com/evanw/esbuild/internal/fs
fs_mock.go#L38: base := path.Base(k)
fs_mock.go#L83: return path.Base(p)
github.com/go-git/go-git/v5
worktree_commit.go#L179: te := object.TreeEntry{Name: path.Base(fullpath)}
github.com/go-git/go-git/v5/utils/merkletrie/filesystem
node.go#L57: return path.Base(n.path)
github.com/go-git/go-git/v5/utils/merkletrie/index
node.go#L77: return path.Base(n.path)
go.opencensus.io/zpages/internal
resources.go#L57: f.name = path.Base(name)
go/doc
example.go#L282: n := path.Base(p)
example.go#L347: if path.Base(p) != n {
golang.org/x/mod/zip
zip.go#L441: if base := path.Base(name); strings.EqualFold(base, "go.mod") {
golang.org/x/pkgsite/internal/config
config.go#L432: "location": path.Base(cfg.ZoneID),
golang.org/x/pkgsite/internal/fetch
readme.go#L67: base := path.Base(file)
golang.org/x/pkgsite/internal/frontend
breadcrumb.go#L63: d = path.Base(d)
breadcrumb.go#L75: el = path.Base(el)
header.go#L37: return path.Base(prefix)
header.go#L39: return path.Base(um.Path) + "/"
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L216: n := path.Base(p)
example.go#L487: if path.Base(p) != n {
golang.org/x/pkgsite/internal/licenses
licenses.go#L414: if !fileNamesLowercase[strings.ToLower(path.Base(f.Name))] {
golang.org/x/pkgsite/internal/testing/pagecheck
pagecheck.go#L85: curBreadcrumb := path.Base(p.Suffix)
golang.org/x/pkgsite/internal/testing/sample
sample.go#L177: return AddPackage(Module(ModulePath, VersionString), UnitForPackage(fp, ModulePath, VersionString, path.Base(fp), true))
sample.go#L191: lp := UnitForPackage(fp, modulePath, VersionString, path.Base(fp), m.IsRedistributable)
sample.go#L271: Name: path.Base(fullPath),
html/template
template.go#L532: name = path.Base(file)
net/http
fs.go#L618: localRedirect(w, r, path.Base(url)+"/")
fs.go#L623: localRedirect(w, r, "../"+path.Base(url))
fs.go#L633: localRedirect(w, r, path.Base(url)+"/")
server.go#L1138: w.conn.server.logf("http: response.WriteHeader on hijacked connection from %s (%s:%d)", caller.Function, path.Base(caller.File), caller.Line)
server.go#L1143: w.conn.server.logf("http: superfluous response.WriteHeader call from %s (%s:%d)", caller.Function, path.Base(caller.File), caller.Line)
server.go#L1585: w.conn.server.logf("http: response.Write on hijacked connection from %s (%s:%d)", caller.Function, path.Base(caller.File), caller.Line)
server.go#L3388: logf(tw.req, "http: superfluous response.WriteHeader call from %s (%s:%d)", caller.Function, path.Base(caller.File), caller.Line)
text/template
helper.go#L173: name = path.Base(file)
 |
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. |