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 syntax:

fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b))