zipkit

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressDirectoryToZip

func CompressDirectoryToZip(src string, dst string) error

CompressDirectoryToZip compresses the given directory recursively into a ZIP file.

func CompressFileToZip

func CompressFileToZip(dst string, src ...string) error

CompressFileToZip 将多个文件压缩为ZIP文件 参数:

dst - 生成的ZIP文件路径
src - 需要压缩的源文件路径(可变参数,支持多个文件)

返回值:

error - 压缩过程中遇到的错误

func UnCompressZip

func UnCompressZip(src string, dst string) error

UnCompressZip 解压zip包

Types

This section is empty.

Jump to

Keyboard shortcuts

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