golang zip 解压、压缩文件

匿名 (未验证) 提交于 2019-12-02 23:34:01

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!