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

Function Safe

safedetails/safedetails.go:62–64  ·  view source on GitHub ↗

Safe wraps the given object into an opaque struct that implements SafeMessager: its contents can be included as-is in PII-free strings in error objects and reports. NB: this is obsolete. Use redact.Safe instead.

(v interface{})

Source from the content-addressed store, hash-verified

60//
61// NB: this is obsolete. Use redact.Safe instead.
62func Safe(v interface{}) redact.SafeValue {
63 return redact.Safe(v)
64}

Callers 5

SafeFunction · 0.92
TestRedactFunction · 0.92
TestDetailCaptureFunction · 0.92
TestFormatFunction · 0.92
TestReportFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestRedactFunction · 0.74
TestDetailCaptureFunction · 0.74
TestFormatFunction · 0.74
TestReportFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…