Documentation
¶
Index ¶
- func Version()
- type FileApi
- func (fi *FileApi) DeleteFile()
- func (fi *FileApi) EchoAdd(text, filename string, wrap bool) error
- func (fi *FileApi) Exists(path string)
- func (fi *FileApi) IsDir(path string) (bool, error)
- func (fi *FileApi) IsFile(path string)
- func (fi *FileApi) Mkdir(dir string, mode fs.FileMode)
- func (fi *FileApi) WriteTxtAppend(text string, wrap bool)
- type ReadScreen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileApi ¶
type FileApi struct { Success bool // 是否操作成功 AbsPath string // 文件绝对路径 FileName string // 需要操作的文件名 Err error // 错误信息(读写操作错误的信息) Text string // 最终字符串信息(例如文本读取信息) IsDirs bool // 是否属于文件夹 IsFiles bool // 是否属于文件 ExIst bool // 是否存在对象 // contains filtered or unexported fields }
func (*FileApi) WriteTxtAppend ¶
WriteTxtAppend 追加方式写入文本(wrap: 是否在末尾追加换行符)
type ReadScreen ¶
type ReadScreen struct { Text string // 字符串内容 Err error // 错误信息 FileName string // 需要操作的文件名 // contains filtered or unexported fields }
func ReadFile ¶ added in v1.1.0
func ReadFile(filename string) *ReadScreen
func (*ReadScreen) Column ¶ added in v1.1.0
func (rs *ReadScreen) Column(col int, seq string) *ReadScreen
Column 读取指定列
func (*ReadScreen) ColumnRange ¶ added in v1.1.0
func (rs *ReadScreen) ColumnRange(start, end int) *ReadScreen
ColumnRange 读取指定范围列
func (*ReadScreen) LineRange ¶ added in v1.1.0
func (rs *ReadScreen) LineRange(start, end int) *ReadScreen
LineRange 读取指定范围行
func (*ReadScreen) OnlyAll ¶ added in v1.1.0
func (rs *ReadScreen) OnlyAll() *ReadScreen
OnlyAll 以只读方式读取文件所有内容
Source Files
¶
Click to show internal directories.
Click to hide internal directories.