These routines end in 'f' and take a format string. Fprintf formats according to a format specifier and writes to w. It returns the number of bytes written and any write error encountered.
(w io.Writer, format string, a ...interface{})
| 208 | // Fprintf formats according to a format specifier and writes to w. |
| 209 | // It returns the number of bytes written and any write error encountered. |
| 210 | func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { |
| 211 | p := newPrinter() |
| 212 | p.doPrintf(format, a) |
| 213 | n, err = w.Write([]byte(p.buf.TakeRedactableBytes())) |
| 214 | p.free() |
| 215 | return |
| 216 | } |
| 217 | |
| 218 | // Printf formats according to a format specifier and writes to standard output. |
| 219 | // It returns the number of bytes written and any write error encountered. |
no test coverage detected
searching dependent graphs…