Documentation ¶
Index ¶
- type FileMgr
- func (f *FileMgr) CheckFileContainsChar(filename, s string) bool
- func (f *FileMgr) CreateDir(path string) bool
- func (f *FileMgr) CreateFile(path string) bool
- func (f *FileMgr) GenerateDir(path string) (string, error)
- func (f *FileMgr) IsDir(path string) bool
- func (f *FileMgr) IsDirOrFileExist(path string) bool
- func (f *FileMgr) IsFile(fileName string) bool
- func (f *FileMgr) ReadFile(fileName string) string
- func (f *FileMgr) WriteFile(fileName, d string) (int, error)
- func (f *FileMgr) WriteFileAppend(fileName, d string) (count int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMgr ¶
type FileMgr struct {
// contains filtered or unexported fields
}
operate file should be only one way
func (*FileMgr) CheckFileContainsChar ¶
check char exist file
func (*FileMgr) IsDirOrFileExist ¶
check exist path
Click to show internal directories.
Click to hide internal directories.