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

Method convertArgs

internal/spew/config.go:288–294  ·  view source on GitHub ↗

convertArgs accepts a slice of arguments and returns a slice of the same length with each argument converted to a spew Formatter interface using the ConfigState associated with s.

(args []interface{})

Source from the content-addressed store, hash-verified

286// length with each argument converted to a spew Formatter interface using
287// the ConfigState associated with s.
288func (c *ConfigState) convertArgs(args []interface{}) (formatters []interface{}) {
289 formatters = make([]interface{}, len(args))
290 for index, arg := range args {
291 formatters[index] = newFormatter(c, arg)
292 }
293 return formatters
294}
295
296// NewDefaultConfig returns a ConfigState with the following default settings.
297//

Callers 10

ErrorfMethod · 0.95
FprintMethod · 0.95
FprintfMethod · 0.95
FprintlnMethod · 0.95
PrintMethod · 0.95
PrintfMethod · 0.95
PrintlnMethod · 0.95
SprintMethod · 0.95
SprintfMethod · 0.95
SprintlnMethod · 0.95

Calls 1

newFormatterFunction · 0.85

Tested by

no test coverage detected