RedactableError is an error that can be used as a drop-in replacement for an error, which has the ability to redact any sensitive data by calling redact() on all of its args.
| 15 | // RedactableError is an error that can be used as a drop-in replacement for an error, |
| 16 | // which has the ability to redact any sensitive data by calling redact() on all of its args. |
| 17 | type RedactableError struct { |
| 18 | fmt string |
| 19 | args []interface{} |
| 20 | } |
| 21 | |
| 22 | var ( |
| 23 | _ error = &RedactableError{} |
nothing calls this directly
no outgoing calls
no test coverage detected