Stripped returns the current buffer contents with the last trailing newline stripped.
()
| 92 | // Stripped returns the current buffer contents with the last trailing newline |
| 93 | // stripped. |
| 94 | func (b *Buffer) Stripped() string { |
| 95 | return strings.TrimRight(b.String(), "\n") |
| 96 | } |