trimPath is a copy of the same function in package sentry-go.
(filename string)
| 85 | |
| 86 | // trimPath is a copy of the same function in package sentry-go. |
| 87 | func trimPath(filename string) string { |
| 88 | for _, prefix := range trimPaths { |
| 89 | if trimmed := strings.TrimPrefix(filename, prefix); len(trimmed) < len(filename) { |
| 90 | return trimmed |
| 91 | } |
| 92 | } |
| 93 | return filename |
| 94 | } |
| 95 | |
| 96 | var trimPaths []string |
| 97 |
no outgoing calls
no test coverage detected
searching dependent graphs…