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

Method Sprint

internal/spew/config.go:197–199  ·  view source on GitHub ↗

Sprint is a wrapper for fmt.Sprint that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns the resulting string. See NewFormatter for formatting details. This function is shorthand for the following syntax: fmt.Sprint(c.NewFormatter(a), c

(a ...interface{})

Source from the content-addressed store, hash-verified

195//
196// fmt.Sprint(c.NewFormatter(a), c.NewFormatter(b))
197func (c *ConfigState) Sprint(a ...interface{}) string {
198 return fmt.Sprint(c.convertArgs(a)...)
199}
200
201// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were
202// passed with a Formatter interface returned by c.NewFormatter. It returns

Callers 6

TestPrintSortedKeysFunction · 0.95
HTTPBodyContainsFunction · 0.80
HTTPBodyNotContainsFunction · 0.80
matchRegexpFunction · 0.80
TestSpewFunction · 0.80
SprintFunction · 0.80

Calls 1

convertArgsMethod · 0.95

Tested by 2

TestPrintSortedKeysFunction · 0.76
TestSpewFunction · 0.64