Sprintf formats according to a format specifier and returns the resulting string.
(format string, a ...any)
| 46 | |
| 47 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 48 | func (p BasicTextPrinter) Sprintf(format string, a ...any) string { |
| 49 | return p.Sprint(Sprintf(format, a...)) |
| 50 | } |
| 51 | |
| 52 | // Sprintfln formats according to a format specifier and returns the resulting string. |
| 53 | // Spaces are always added between operands and a newline is appended. |