package utils
import (
)
//压缩文件
//files 文件数组,可以是不同dir下的文件或者文件夹
//dest 压缩文件存放地址
func Compress(files []*os.File, dest string) error {
}
func compress(file *os.File, prefix string, zw *zip.Writer) error {
}
//解压
func DeCompress(zipFile, dest string) (err error) {
}
func getDir(path string) string {
}
func subString(str string, start, end int) string {
}
func CompressZip(src string, dest string) (err error) {
}
文章来源: https://blog.csdn.net/zhangyingchuang/article/details/90321242