Sprintfln formats according to a format specifier and returns the resulting string. Spaces are always added between operands and a newline is appended.
(format string, a ...any)
| 168 | // Sprintfln formats according to a format specifier and returns the resulting string. |
| 169 | // Spaces are always added between operands and a newline is appended. |
| 170 | func (p HeaderPrinter) Sprintfln(format string, a ...any) string { |
| 171 | return p.Sprintf(format, a...) + "\n" |
| 172 | } |
| 173 | |
| 174 | // Print formats using the default formats for its operands and writes to standard output. |
| 175 | // Spaces are added between operands when neither is a string. |