()
| 212 | } |
| 213 | |
| 214 | func (b *Buffer) startWrite() { |
| 215 | if b.mode == UnsafeEscaped && !b.markerOpen { |
| 216 | b.startRedactable() |
| 217 | b.validUntil = len(b.buf) |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | // startRedactable adds the opening redaction marker. |
| 222 | func (b *Buffer) startRedactable() { |
no test coverage detected