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

Method Print

internal/spew/config.go:162–164  ·  view source on GitHub ↗

Print is a wrapper for fmt.Print 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 synt

(a ...interface{})

Source from the content-addressed store, hash-verified

160//
161// fmt.Print(c.NewFormatter(a), c.NewFormatter(b))
162func (c *ConfigState) Print(a ...interface{}) (n int, err error) {
163 return fmt.Print(c.convertArgs(a)...)
164}
165
166// Printf is a wrapper for fmt.Printf that treats each argument as if it were
167// passed with a Formatter interface returned by c.NewFormatter. It returns

Callers 6

TestSpewFunction · 0.80
PrintFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

convertArgsMethod · 0.95

Tested by 3

TestSpewFunction · 0.64