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

Function init

withstack/reportable.go:99–108  ·  view source on GitHub ↗

init is a copy of the same function in package sentry-go.

()

Source from the content-addressed store, hash-verified

97
98// init is a copy of the same function in package sentry-go.
99func init() {
100 // Collect all source directories, and make sure they
101 // end in a trailing "separator"
102 for _, prefix := range build.Default.SrcDirs() {
103 if prefix[len(prefix)-1] != filepath.Separator {
104 prefix += string(filepath.Separator)
105 }
106 trimPaths = append(trimPaths, prefix)
107 }
108}
109
110// functionName is an adapted copy of the same function in package sentry-go.
111func functionName(fnName string) (pack string, name string) {

Callers

nothing calls this directly

Calls 2

GetTypeKeyFunction · 0.92
WithStackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…