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

Function Printf

internal/spew/spew.go:91–93  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

89//
90// fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b))
91func Printf(format string, a ...interface{}) (n int, err error) {
92 return fmt.Printf(format, convertArgs(a)...)
93}
94
95// Println is a wrapper for fmt.Println that treats each argument as if it were
96// passed with a default Formatter interface returned by NewFormatter. It

Callers 1

ExamplePrintfFunction · 0.92

Calls 2

convertArgsFunction · 0.85
PrintfMethod · 0.80

Tested by 1

ExamplePrintfFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…