Documentation ¶
Index ¶
- func AddFileToZip(zipWriter *zip.Writer, srcFilePath, zipFilePath string) error
- func Unzip(zipPath, unzipResourceDir string) (err error)
- func UnzipFn(zipFile *zip.File, unzipResourceDir string) (err error)
- func Zip(resourcePath string, zipPath string) error
- func ZipFile(filePath string, zipPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileToZip ¶
AddFileToZip 添加文件到zip @param srcFilePath 被压缩资源;例: runtime/videos/xxx.mp4 @param zipFilePath 压缩到zip的路径;例: videos/test.mp4
func Unzip ¶
Unzip 解压资源 @param zipPath 压缩资源;例: runtime/zip/videos.zip @param unzipResourceDir 解缩到zip的路径;例: runtime/videos
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.