These routines end in 'ln', do not take a format string, always add spaces between operands, and add a newline after the last operand. Fprintln formats using the default formats for its operands and writes to w. Spaces are always added between operands and a newline is appended. It returns the numbe
(w io.Writer, a ...interface{})
| 268 | // Spaces are always added between operands and a newline is appended. |
| 269 | // It returns the number of bytes written and any write error encountered. |
| 270 | func Fprintln(w io.Writer, a ...interface{}) (n int, err error) { |
| 271 | p := newPrinter() |
| 272 | p.doPrintln(a) |
| 273 | n, err = w.Write([]byte(p.buf.TakeRedactableBytes())) |
| 274 | p.free() |
| 275 | return |
| 276 | } |
| 277 | |
| 278 | // Println formats using the default formats for its operands and writes to standard output. |
| 279 | // Spaces are always added between operands and a newline is appended. |
no test coverage detected
searching dependent graphs…