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)
| 192 | // Printf formats according to a format specifier and writes to standard output. |
| 193 | // It returns the number of bytes written and any write error encountered. |
| 194 | func (p *HeaderPrinter) Printf(format string, a ...any) *TextPrinter { |
| 195 | Fprint(p.Writer, p.Sprintf(format, a...)) |
| 196 | tp := TextPrinter(p) |
| 197 | return &tp |
| 198 | } |
| 199 | |
| 200 | // Printfln formats according to a format specifier and writes to standard output. |
| 201 | // Spaces are always added between operands and a newline is appended. |
nothing calls this directly
no test coverage detected