MCPcopy Index your code
hub / github.com/expr-lang/expr / Errorf

Method Errorf

internal/spew/config.go:115–117  ·  view source on GitHub ↗

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:

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

113//
114// fmt.Errorf(format, c.NewFormatter(a), c.NewFormatter(b))
115func (c *ConfigState) Errorf(format string, a ...interface{}) (err error) {
116 return fmt.Errorf(format, c.convertArgs(a)...)
117}
118
119// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were
120// passed with a Formatter interface returned by c.NewFormatter. It returns

Callers

nothing calls this directly

Calls 2

convertArgsMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected