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)
| 157 | // Sprintln formats using the default formats for its operands and returns the resulting string. |
| 158 | // Spaces are always added between operands and a newline is appended. |
| 159 | func (p HeaderPrinter) Sprintln(a ...any) string { |
| 160 | return p.Sprint(strings.TrimSuffix(Sprintln(a...), "\n")) |
| 161 | } |
| 162 | |
| 163 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 164 | func (p HeaderPrinter) Sprintf(format string, a ...any) string { |