Documentation ¶
Index ¶
- func GetList(t *term.ViewPort, baseFolder string) []os.DirEntry
- func Open(p *page.Page, filename string) (*os.File, error)
- func Read(p *page.Page, file *os.File) ([]byte, error)
- func ReadFile(p *page.Page, fileName string) ([]byte, error)
- func WriteString(p *page.Page, file *os.File, content string) error
- func WriteStringSlice(p *page.Page, file *os.File, content []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetList ¶
GetList returns a list of files in the specified base folder. If an error occurs, an error message is displayed using the provided terminal.
func Open ¶
Open opens a file for writing.
Parameters: t - the terminal to use for output. filename - the name of the file to open.
Returns: a file pointer, or an error if any occurred while opening the file.
func WriteStringSlice ¶
WriteStringSlice writes a slice of strings to a file.
Parameters: t - the terminal to use for output. file - the file to write to. content - the slice of strings to write to the file.
Returns: an error if any occurred while writing to the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.