/
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
vendor
/
github.com
/
google
/
pprof
/
internal
/
report
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.211
PHP 8.3.16
Dir:
/opt/golang/1.22.0/src/cmd/vendor/github.com/google/pprof/internal/report
Edit:
/opt/golang/1.22.0/src/cmd/vendor/github.com/google/pprof/internal/report/package.go
package report import "regexp" // pkgRE extracts package name, It looks for the first "." or "::" that occurs // after the last "/". (Searching after the last / allows us to correctly handle // names that look like "some.url.com/foo.bar".) var pkgRE = regexp.MustCompile(`^((.*/)?[\w\d_]+)(\.|::)([^/]*)$`) // packageName returns the package name of the named symbol, or "" if not found. func packageName(name string) string { m := pkgRE.FindStringSubmatch(name) if m == nil { return "" } return m[1] }
Ukuran: 512 B