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{})
| 166 | // should be taken as a signal that a new abstraction is missing. |
| 167 | // The implementation is also slow. |
| 168 | func 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. |
no outgoing calls
searching dependent graphs…