init is a copy of the same function in package sentry-go.
()
| 97 | |
| 98 | // init is a copy of the same function in package sentry-go. |
| 99 | func 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. |
| 111 | func functionName(fnName string) (pack string, name string) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…