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{})
| 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. |
| 142 | func 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 | } |
no test coverage detected
searching dependent graphs…