MCPcopy Create free account
hub / github.com/cockroachdb/redact / Safe

Function Safe

api.go:168–168  ·  view source on GitHub ↗

Safe turns any value into an object that is considered as safe by the formatter. This is provided as an “escape hatch” for cases where the other interfaces and conventions fail. Increased usage of this mechanism should be taken as a signal that a new abstraction is missing. The implementation is al

(a interface{})

Source from the content-addressed store, hash-verified

166// should be taken as a signal that a new abstraction is missing.
167// The implementation is also slow.
168func Safe(a interface{}) SafeValue { return w.Safe(a) }
169
170// RegisterRedactErrorFn registers an error redaction function for use
171// during automatic redaction by this package.

Callers 6

BenchmarkRedactFunction · 0.70
TestPrinterFunction · 0.70
TestRedactStreamFunction · 0.70

Calls

no outgoing calls

Tested by 6

BenchmarkRedactFunction · 0.56
TestPrinterFunction · 0.56
TestRedactStreamFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…