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)
| 89 | // Sprintln formats using the default formats for its operands and returns the resulting string. |
| 90 | // Spaces are always added between operands and a newline is appended. |
| 91 | func (p CenterPrinter) Sprintln(a ...any) string { |
| 92 | return p.Sprint(Sprintln(a...)) |
| 93 | } |
| 94 | |
| 95 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 96 | func (p CenterPrinter) Sprintf(format string, a ...any) string { |