Printfln formats according to a format specifier and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
(format string, a ...any)
| 133 | // Spaces are always added between operands and a newline is appended. |
| 134 | // It returns the number of bytes written and any write error encountered. |
| 135 | func (p CenterPrinter) Printfln(format string, a ...any) *TextPrinter { |
| 136 | Fprint(p.Writer, p.Sprintfln(format, a...)) |
| 137 | tp := TextPrinter(p) |
| 138 | return &tp |
| 139 | } |
| 140 | |
| 141 | // PrintOnError prints every error which is not nil. |
| 142 | // If every error is nil, nothing will be printed. |
nothing calls this directly
no test coverage detected