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

Method Open

texteditor/buffer.go:334–340  ·  view source on GitHub ↗

Open loads the given file into the buffer.

(filename core.Filename)

Source from the content-addressed store, hash-verified

332
333// Open loads the given file into the buffer.
334func (tb *Buffer) Open(filename core.Filename) error { //types:add
335 err := tb.openFile(filename)
336 if err != nil {
337 return err
338 }
339 return nil
340}
341
342// OpenFS loads the given file in the given filesystem into the buffer.
343func (tb *Buffer) OpenFS(fsys fs.FS, filename string) error {

Callers

nothing calls this directly

Calls 1

openFileMethod · 0.95

Tested by

no test coverage detected