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

Function Sprintln

internal/spew/spew.go:136–138  ·  view source on GitHub ↗

Sprintln is a wrapper for fmt.Sprintln 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.Sprintln(spew.New

(a ...interface{})

Source from the content-addressed store, hash-verified

134//
135// fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b))
136func Sprintln(a ...interface{}) string {
137 return fmt.Sprintln(convertArgs(a)...)
138}
139
140// convertArgs accepts a slice of arguments and returns a slice of the same
141// length with each argument converted to a default spew Formatter interface.

Callers 1

TestSpewFunction · 0.92

Calls 2

convertArgsFunction · 0.85
SprintlnMethod · 0.80

Tested by 1

TestSpewFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…