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

Function convertArgs

internal/spew/spew.go:142–148  ·  view source on GitHub ↗

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

(args []interface{})

Source from the content-addressed store, hash-verified

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.
142func convertArgs(args []interface{}) (formatters []interface{}) {
143 formatters = make([]interface{}, len(args))
144 for index, arg := range args {
145 formatters[index] = NewFormatter(arg)
146 }
147 return formatters
148}

Callers 10

ErrorfFunction · 0.85
FprintFunction · 0.85
FprintfFunction · 0.85
FprintlnFunction · 0.85
PrintFunction · 0.85
PrintfFunction · 0.85
PrintlnFunction · 0.85
SprintFunction · 0.85
SprintfFunction · 0.85
SprintlnFunction · 0.85

Calls 1

NewFormatterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…