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

Function Sprintf

internal/spew/spew.go:125–127  ·  view source on GitHub ↗

Sprintf is a wrapper for fmt.Sprintf 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.Sprintf(format, spe

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

123//
124// fmt.Sprintf(format, spew.NewFormatter(a), spew.NewFormatter(b))
125func Sprintf(format string, a ...interface{}) string {
126 return fmt.Sprintf(format, convertArgs(a)...)
127}
128
129// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it
130// were passed with a default Formatter interface returned by NewFormatter. It

Callers 2

TestSpewFunction · 0.92
newValuesSorterFunction · 0.85

Calls 2

convertArgsFunction · 0.85
SprintfMethod · 0.80

Tested by 1

TestSpewFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…