Println formats using the default formats for its operands 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.
(a ...any)
| 184 | // Spaces are always added between operands and a newline is appended. |
| 185 | // It returns the number of bytes written and any write error encountered. |
| 186 | func (p *HeaderPrinter) Println(a ...any) *TextPrinter { |
| 187 | Fprint(p.Writer, p.Sprintln(a...)) |
| 188 | tp := TextPrinter(p) |
| 189 | return &tp |
| 190 | } |
| 191 | |
| 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. |