SetString sets the text to the given string.
(txt string)
| 206 | |
| 207 | // SetString sets the text to the given string. |
| 208 | func (tb *Buffer) SetString(txt string) *Buffer { |
| 209 | return tb.SetText([]byte(txt)) |
| 210 | } |
| 211 | |
| 212 | func (tb *Buffer) Update() { |
| 213 | tb.signalMods() |