Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
(format string, a ...any)
| 274 | // Printf formats according to a format specifier and writes to standard output. |
| 275 | // It returns the number of bytes written and any write error encountered. |
| 276 | func (p *PrefixPrinter) Printf(format string, a ...any) *TextPrinter { |
| 277 | tp := TextPrinter(p) |
| 278 | if p.Debugger && !PrintDebugMessages { |
| 279 | return &tp |
| 280 | } |
| 281 | Fprint(p.GetWriter(), p.Sprintf(format, a...)) |
| 282 | checkFatal(p) |
| 283 | return &tp |
| 284 | } |
| 285 | |
| 286 | // Printfln formats according to a format specifier and writes to standard output. |
| 287 | // Spaces are always added between operands and a newline is appended. |
nothing calls this directly
no test coverage detected