Sprintf formats according to a format specifier and returns the resulting string. Input will be colored with the parent Style.
(format string, a ...any)
| 316 | // Sprintf formats according to a format specifier and returns the resulting string. |
| 317 | // Input will be colored with the parent Style. |
| 318 | func (s Style) Sprintf(format string, a ...any) string { |
| 319 | return s.Sprint(Sprintf(format, a...)) |
| 320 | } |
| 321 | |
| 322 | // Sprintfln formats according to a format specifier and returns the resulting string. |
| 323 | // Spaces are always added between operands and a newline is appended. |