MCPcopy Create free account
hub / github.com/cockroachdb/redact / Fprintln

Function Fprintln

internal/rfmt/print.go:270–276  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

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.
270func 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.

Callers 1

PrintlnFunction · 0.85

Calls 5

newPrinterFunction · 0.85
doPrintlnMethod · 0.80
TakeRedactableBytesMethod · 0.80
freeMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…