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

Struct StringBuilder

builder/builder.go:31–33  ·  view source on GitHub ↗

StringBuilder accumulates strings with optional redaction markers. It implements io.Writer but marks direct writes as redactable. To distinguish safe and unsafe bits, it also implements the SafeWriter interface.

Source from the content-addressed store, hash-verified

29// To distinguish safe and unsafe bits, it also implements the SafeWriter
30// interface.
31type StringBuilder struct {
32 ib.Buffer
33}
34
35var _ fmt.Stringer = StringBuilder{}
36var _ fmt.Stringer = (*StringBuilder)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected