String implemens fmt.Stringer.
()
| 77 | |
| 78 | // String implemens fmt.Stringer. |
| 79 | func (b Buffer) String() string { |
| 80 | // NB: we're dependent on the fact this is a copy of the original |
| 81 | // buffer. The finalize() method should not be called |
| 82 | // in a conceputally read-only accessor like String(). |
| 83 | b.finalize() |
| 84 | return m.RedactableString(b.buf).StripMarkers() |
| 85 | } |
| 86 | |
| 87 | // TakeRedactableBytes returns the buffer |
| 88 | // contents and reinitializes the buffer. This saves |
nothing calls this directly
no test coverage detected