MCPcopy Index your code
hub / github.com/cockroachdb/errors / lastPathComponent

Function lastPathComponent

report/report.go:394–400  ·  view source on GitHub ↗
(tn string)

Source from the content-addressed store, hash-verified

392}
393
394func lastPathComponent(tn string) string {
395 // Strip the path prefix.
396 if i := strings.LastIndexByte(tn, '/'); i >= 0 {
397 tn = tn[i+1:]
398 }
399 return tn
400}
401
402func reverseExceptionOrder(ex []sentry.Exception) {
403 for i := 0; i < len(ex)/2; i++ {

Callers 1

BuildSentryReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…