Documentation ¶
Index ¶
- func AbsPath() string
- func GetFiles(folder string) []string
- func GetFilesWithExt(folder, ext string) []string
- func GetFolders(folder string) []string
- func IsExist(file string) bool
- func MkdirForFile(filepath string, perm os.FileMode)
- func ReadFile(filename string) (res []byte, err error)
- func WriteFile(filepath string, content []byte) (err error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilesWithExt ¶
GetFilesWithExt 获取文件夹下具有指定文件后缀得文件列表
func MkdirForFile ¶
MkdirForFile 为要访问的文件创建必备的文件夹
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher 监控文件添加行
func NewWatcher ¶ added in v1.1.3
NewWatcher 初始化一个监控程序
Click to show internal directories.
Click to hide internal directories.