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)
| 60 | // Sprintln formats using the default formats for its operands and returns the resulting string. |
| 61 | // Spaces are always added between operands and a newline is appended. |
| 62 | func (p ParagraphPrinter) Sprintln(a ...any) string { |
| 63 | return p.Sprint(Sprintln(a...)) + "\n" |
| 64 | } |
| 65 | |
| 66 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 67 | func (p ParagraphPrinter) Sprintf(format string, a ...any) string { |