MCPcopy Create free account
hub / github.com/cogentcore/core / SetString

Method SetString

texteditor/buffer.go:208–210  ·  view source on GitHub ↗

SetString sets the text to the given string.

(txt string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SetTextMethod · 0.95

Tested by

no test coverage detected