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

Method Sprintln

internal/spew/config.go:219–221  ·  view source on GitHub ↗

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

(a ...interface{})

Source from the content-addressed store, hash-verified

217//
218// fmt.Sprintln(c.NewFormatter(a), c.NewFormatter(b))
219func (c *ConfigState) Sprintln(a ...interface{}) string {
220 return fmt.Sprintln(c.convertArgs(a)...)
221}
222
223/*
224NewFormatter returns a custom formatter that satisfies the fmt.Formatter

Callers 2

TestSpewFunction · 0.80
SprintlnFunction · 0.80

Calls 1

convertArgsMethod · 0.95

Tested by 1

TestSpewFunction · 0.64