compress

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipCompress

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

func GzipCompressFile added in v1.4.1

func GzipCompressFile(src string, dst string) error

GzipCompressFile 压缩文件Src到Dst

func GzipDeCompressFile added in v1.4.1

func GzipDeCompressFile(src string, dst string) error

GzipDeCompressFile 解压文件Src到Dst

func GzipDecompress

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

func Unzip added in v1.3.0

func Unzip(zipPath, dstDir string) error

Unzip decompresses a zip file to specified directory. Note that the destination directory don't need to specify the trailing path separator.

func Zip added in v1.3.0

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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