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

Function MakeFormat

api.go:186–188  ·  view source on GitHub ↗

MakeFormat is a helper for use by implementations of the SafeFormatter interface. It reproduces the format currently active in fmt.State and verb. This is provided because Go's standard fmt.State does not make the original format string available to us. If the return value justV is true, then the c

(s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

184// can avoid a full-blown Printf call and use just Print instead
185// to take a shortcut.
186func MakeFormat(s fmt.State, verb rune) (justV bool, format string) {
187 return fw.MakeFormat(s, verb)
188}
189
190// StringBuilder accumulates strings with optional redaction markers.
191//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…