Documentation ¶
Index ¶
- func Abs2Rel(path string) string
- func Append(filename, content string) error
- func CheckExist(path string, needDir bool) error
- func Copy(src, dst string) error
- func CreateFile(absPath, content string, perm os.FileMode) error
- func CreateFile2(absPath string, r io.Reader, perm os.FileMode) error
- func CreateFile3(absPath string, r io.Reader, perm os.FileMode) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExist ¶
CheckExist please check error is nil or not
func CreateFile ¶
CreateFile create file if not exist, or truncate file and then write content to file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.