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 Color.
(format string, a ...any)
| 194 | // It returns the number of bytes written and any write error encountered. |
| 195 | // Input will be colored with the parent Color. |
| 196 | func (c Color) Printf(format string, a ...any) *TextPrinter { |
| 197 | Print(c.Sprintf(format, a...)) |
| 198 | tc := TextPrinter(c) |
| 199 | return &tc |
| 200 | } |
| 201 | |
| 202 | // Printfln formats according to a format specifier and writes to standard output. |
| 203 | // Spaces are always added between operands and a newline is appended. |
nothing calls this directly
no test coverage detected