Errorf is a wrapper for fmt.Errorf that treats each argument as if it were passed with a Formatter interface returned by c.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, c.NewFormatter(a), c.NewFormatter(b))