Open loads the given file into the buffer.
(filename core.Filename)
| 332 | |
| 333 | // Open loads the given file into the buffer. |
| 334 | func (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. |
| 343 | func (tb *Buffer) OpenFS(fsys fs.FS, filename string) error { |