Sprintf formats according to a format specifier and returns the resulting string.
(format string, a ...any)
| 162 | |
| 163 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 164 | func (p HeaderPrinter) Sprintf(format string, a ...any) string { |
| 165 | return p.Sprint(Sprintf(format, a...)) |
| 166 | } |
| 167 | |
| 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. |