func path/filepath.Base
18 uses
path/filepath (current package)
path.go#L545: func Base(path string) string {
github.com/go-git/go-billy/v5/helper/chroot
chroot.go#L133: return newFile(fs, f, fs.Join(dir, filepath.Base(f.Name()))), nil
github.com/google/pprof/profile
legacy_java_profile.go#L282: lineFunc, lineFile = filePath[1], filepath.Base(filePath[2])
profile.go#L778: name := filepath.Base(m.File)
github.com/google/safehtml/template
template.go#L537: name := filepath.Base(filename)
github.com/prometheus/client_golang/prometheus
registry.go#L556: tmp, err := ioutil.TempFile(filepath.Dir(filename), filepath.Base(filename))
golang.org/x/mod/zip
zip.go#L745: switch filepath.Base(filePath) {
golang.org/x/pkgsite/internal/frontend
styleguide.go#L136: id := strings.TrimSuffix(filepath.Base(filename), ".md")
styleguide.go#L199: if matched, err := filepath.Match("*.md", filepath.Base(path)); err != nil {
golang.org/x/pkgsite/internal/proxy
test_helper.go#L76: modver := strings.TrimSuffix(filepath.Base(filename), filepath.Ext(filename))
golang.org/x/pkgsite/internal/symbol
apigodoc.go#L40: base := filepath.Base(name)
apigodoc.go#L130: base := filepath.Base(name)
html/template
template.go#L525: name = filepath.Base(file)
internal/execabs
execabs.go#L39: if filepath.Base(file) == file && !filepath.IsAbs(path) {
execabs.go#L46: if filepath.Base(name) == name && !filepath.IsAbs(cmd.Path) {
os/exec
exec.go#L174: if filepath.Base(name) == name {
exec.go#L348: if filepath.Base(path) == path {
text/template
helper.go#L166: name = filepath.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. |