Sprintln formats using the default formats for its operands and returns the resulting string. Spaces are always added between operands and a newline is appended.
(a ...any)
| 321 | // Sprintln formats using the default formats for its operands and returns the resulting string. |
| 322 | // Spaces are always added between operands and a newline is appended. |
| 323 | func (p BoxPrinter) Sprintln(a ...any) string { |
| 324 | return p.Sprint(strings.TrimSuffix(Sprintln(a...), "\n")) + "\n" |
| 325 | } |
| 326 | |
| 327 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 328 | func (p BoxPrinter) Sprintf(format string, a ...any) string { |