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

Function Sprintf

internal/rfmt/print.go:225–231  ·  view source on GitHub ↗

Sprintf formats according to a format specifier and returns the resulting string.

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

223
224// Sprintf formats according to a format specifier and returns the resulting string.
225func Sprintf(format string, a ...interface{}) m.RedactableString {
226 p := newPrinter()
227 p.doPrintf(format, a)
228 s := p.buf.TakeRedactableString()
229 p.free()
230 return s
231}
232
233// These routines do not take a format string
234

Callers 1

SprintfFunction · 0.92

Calls 4

newPrinterFunction · 0.85
doPrintfMethod · 0.80
TakeRedactableStringMethod · 0.80
freeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…