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

Function Example_newlines

internal/buffer/buffer_test.go:490–498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488}
489
490func Example_newlines() {
491 var b Buffer
492 b.SetMode(UnsafeEscaped)
493 b.WriteString("a\n")
494 fmt.Printf("%q\n", b.RedactableBytes())
495
496 // Output:
497 // "‹a›\n"
498}
499
500func Example_mixed_writes() {
501 testCases := []struct {

Callers

nothing calls this directly

Calls 4

SetModeMethod · 0.95
WriteStringMethod · 0.95
RedactableBytesMethod · 0.95
PrintfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…