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)
| 87 | // Spaces are always added between operands and a newline is appended. |
| 88 | // It returns the number of bytes written and any write error encountered. |
| 89 | func (p *ParagraphPrinter) Println(a ...any) *TextPrinter { |
| 90 | Fprint(p.Writer, p.Sprintln(a...)) |
| 91 | tp := TextPrinter(p) |
| 92 | return &tp |
| 93 | } |
| 94 | |
| 95 | // Printf formats according to a format specifier and writes to standard output. |
| 96 | // It returns the number of bytes written and any write error encountered. |