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

Function Sprint

internal/spew/spew.go:114–116  ·  view source on GitHub ↗

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

(a ...interface{})

Source from the content-addressed store, hash-verified

112//
113// fmt.Sprint(spew.NewFormatter(a), spew.NewFormatter(b))
114func Sprint(a ...interface{}) string {
115 return fmt.Sprint(convertArgs(a)...)
116}
117
118// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were
119// passed with a default Formatter interface returned by NewFormatter. It

Callers 1

TestSpewFunction · 0.92

Calls 2

convertArgsFunction · 0.85
SprintMethod · 0.80

Tested by 1

TestSpewFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…