Errorf is a wrapper for fmt.Errorf that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It returns the formatted string as a value that satisfies error. See NewFormatter for formatting details. This function is shorthand for the following syn
(format string, a ...interface{})
| 30 | // |
| 31 | // fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b)) |
| 32 | func Errorf(format string, a ...interface{}) (err error) { |
| 33 | return fmt.Errorf(format, convertArgs(a)...) |
| 34 | } |
| 35 | |
| 36 | // Fprint is a wrapper for fmt.Fprint that treats each argument as if it were |
| 37 | // passed with a default Formatter interface returned by NewFormatter. It |