Documentation ¶
Index ¶
- Constants
- func MD5(filepath string) (string, error)
- func MkDir(path string) error
- func MkDirAll(path string) error
- func PathExists(path string) (bool, error)
- func RmFile(path string) error
- func RmFilesUnderDir(dir string) error
- func ToBytes(filepath string) ([]byte, error)
- func UZipBytes(data []byte) []byte
- func UnzipFile(srcFile, dstDir string) error
- func WriteBytesSafe(filePath string, b []byte) (int, error)
- func WriteString(filePath string, s string) (int, error)
- func ZipBytes(data []byte) []byte
- func ZipFile(sourceFiles []string, zipFilePath string, mode int) error
Constants ¶
View Source
const ( CompressModeStore = 1 CompressModeDeflate = 2 )
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
func RmFilesUnderDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.