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

Function fmtClean

errbase/stack_format_test.go:102–107  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

100}
101
102func fmtClean(x interface{}) string {
103 spv := fmt.Sprintf("%+v", x)
104 spv = fileref.ReplaceAllString(spv, "<path>:<lineno>")
105 spv = strings.ReplaceAll(spv, "\t", "<tab>")
106 return spv
107}
108
109var fileref = regexp.MustCompile(`([a-zA-Z0-9\._/@-]*\.(?:go|s):\d+)`)

Callers 1

TestSimplifyStacksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…