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

Method Fprintln

internal/spew/config.go:150–152  ·  view source on GitHub ↗

Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it passed with a Formatter interface returned by c.NewFormatter. See NewFormatter for formatting details. This function is shorthand for the following syntax: fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b))

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

Source from the content-addressed store, hash-verified

148//
149// fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b))
150func (c *ConfigState) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
151 return fmt.Fprintln(w, c.convertArgs(a)...)
152}
153
154// Print is a wrapper for fmt.Print that treats each argument as if it were
155// passed with a Formatter interface returned by c.NewFormatter. It returns

Callers 2

TestSpewFunction · 0.80
FprintlnFunction · 0.80

Calls 1

convertArgsMethod · 0.95

Tested by 1

TestSpewFunction · 0.64