Documentation ¶
Index ¶
- func APIFileUrlRetriever(fileUrl string) string
- 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)
- func FilterAPIFileUrl(content string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIFileUrlRetriever ¶
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.
func CreateFile3 ¶
CreateFile3 return the created file and error if have
func FilterAPIFileUrl ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.