Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZipCompress ¶
用法: // 要压缩的文件夹路径
source := "E:\\zscache\\sb.php" // 压缩文件保存路径 destination := "E:\\zscache\\sb.zip" err := Zip(source, destination) if err != nil { fmt.Println(err) } else { fmt.Println("压缩成功") }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.