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{})
| 134 | // |
| 135 | // fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b)) |
| 136 | func 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. |