修复格式问题,重构嵌套层数过深的函数
This commit is contained in:
@@ -38,7 +38,7 @@ func ZipFiles(filename string, files []string, oldform, newform string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
//使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
|
||||
// 使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
|
||||
header.Name = strings.Replace(file, oldform, newform, -1)
|
||||
|
||||
// 优化压缩
|
||||
|
Reference in New Issue
Block a user