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

Function Fprintf

internal/spew/spew.go:56–58  ·  view source on GitHub ↗

Fprintf is a wrapper for fmt.Fprintf 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 foll

(w io.Writer, format string, a ...interface{})

Source from the content-addressed store, hash-verified

54//
55// fmt.Fprintf(w, format, spew.NewFormatter(a), spew.NewFormatter(b))
56func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
57 return fmt.Fprintf(w, format, convertArgs(a)...)
58}
59
60// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it
61// passed with a default Formatter interface returned by NewFormatter. See

Callers 1

TestFormatterFunction · 0.92

Calls 2

convertArgsFunction · 0.85
FprintfMethod · 0.80

Tested by 1

TestFormatterFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…