CompressTool

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptZip

func EncryptZip(src, desc, password string) error

EncryptZip 加密压缩文件

func ZipCompress

func ZipCompress(source string, destination string) error

用法: // 要压缩的文件夹路径

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL