Text returns the current text as a []byte array, applying all current changes by calling editDone, which will generate a signal if there have been changes.
()
| 224 | // changes by calling editDone, which will generate a signal if there have been |
| 225 | // changes. |
| 226 | func (tb *Buffer) Text() []byte { |
| 227 | tb.editDone() |
| 228 | return tb.Bytes() |
| 229 | } |
| 230 | |
| 231 | // String returns the current text as a string, applying all current |
| 232 | // changes by calling editDone, which will generate a signal if there have been |
no test coverage detected