Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered. Input will be colored with the parent Style.
(format string, a ...any)
| 346 | // It returns the number of bytes written and any write error encountered. |
| 347 | // Input will be colored with the parent Style. |
| 348 | func (s Style) Printf(format string, a ...any) { |
| 349 | Print(s.Sprintf(format, a...)) |
| 350 | } |
| 351 | |
| 352 | // Printfln formats according to a format specifier and writes to standard output. |
| 353 | // Spaces are always added between operands and a newline is appended. |