compress

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipCompress

func GzipCompress(data []byte) ([]byte, error)

GzipCompress 压缩数据

func GzipCompressFile

func GzipCompressFile(src, dst string) error

GzipCompressFile 压缩文件

func GzipDecompress

func GzipDecompress(data []byte) ([]byte, error)

GzipDecompress 解压缩数据

func GzipDecompressFile

func GzipDecompressFile(src, dst string) error

GzipDecompressFile 解压文件

func Unzip

func Unzip(zipPath, dstDir string) error

Unzip 解压 zip 文件 参数: zipPath zip文件路径,dstDir 目标目录

func Zip

func Zip(zipPath string, paths []string) error

Zip 压缩文件或目录 参数: zipPath 目标zip文件路径,paths 要压缩的文件或目录列表

Types

This section is empty.

Jump to

Keyboard shortcuts

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