MCPcopy
hub / github.com/expr-lang/expr / Printf

Method Printf

internal/spew/config.go:174–176  ·  view source on GitHub ↗

Printf is a wrapper for fmt.Printf that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns the number of bytes written and any write error encountered. See NewFormatter for formatting details. This function is shorthand for the following sy

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

Source from the content-addressed store, hash-verified

172//
173// fmt.Printf(format, c.NewFormatter(a), c.NewFormatter(b))
174func (c *ConfigState) Printf(format string, a ...interface{}) (n int, err error) {
175 return fmt.Printf(format, c.convertArgs(a)...)
176}
177
178// Println is a wrapper for fmt.Println that treats each argument as if it were
179// passed with a Formatter interface returned by c.NewFormatter. It returns

Callers 15

ExampleConfigStateFunction · 0.95
ExampleEvalFunction · 0.80
ExampleCompileFunction · 0.80
ExampleEnvFunction · 0.80
ExampleAsKindFunction · 0.80
ExampleAsBoolFunction · 0.80
ExampleAsBool_errorFunction · 0.80
ExampleAsIntFunction · 0.80
ExampleAsInt64Function · 0.80

Calls 1

convertArgsMethod · 0.95

Tested by 15

ExampleConfigStateFunction · 0.76
ExampleEvalFunction · 0.64
ExampleCompileFunction · 0.64
ExampleEnvFunction · 0.64
ExampleAsKindFunction · 0.64
ExampleAsBoolFunction · 0.64
ExampleAsBool_errorFunction · 0.64
ExampleAsIntFunction · 0.64
ExampleAsInt64Function · 0.64