Formattable wraps an error into a fmt.Formatter which will provide "smart" formatting even if the outer layer of the error does not implement the Formatter interface.
(err error)
| 71 | // will provide "smart" formatting even if the outer layer |
| 72 | // of the error does not implement the Formatter interface. |
| 73 | func Formattable(err error) fmt.Formatter { |
| 74 | return &errorFormatter{err} |
| 75 | } |
| 76 | |
| 77 | // formatErrorInternal is the shared logic between FormatError |
| 78 | // and FormatErrorRedactable. |
no outgoing calls
searching dependent graphs…