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

Function Safe

safedetails_api.go:50–50  ·  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

48//
49// NB: this is obsolete. Use redact.Safe instead.
50func Safe(v interface{}) redact.SafeValue { return safedetails.Safe(v) }
51
52// Redact returns a redacted version of the supplied item that is safe to use in
53// anonymized reporting.

Callers 1

Calls 1

SafeFunction · 0.92

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…