Sprintf formats according to a format specifier and returns the resulting string.
(format string, a ...any)
| 94 | |
| 95 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 96 | func (p CenterPrinter) Sprintf(format string, a ...any) string { |
| 97 | return p.Sprint(Sprintf(format, a...)) |
| 98 | } |
| 99 | |
| 100 | // Sprintfln formats according to a format specifier and returns the resulting string. |
| 101 | // Spaces are always added between operands and a newline is appended. |