compress

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(Dst, SrcPath string) error

压缩 tar.gz

func DeCompress

func DeCompress(tarFile, dest string) error

解压 tar.gz

func Unzip

func Unzip(zipFile, dest string) (err error)

解压zip文件 @param zipFile 需要解压的zip文件 @param dest 需要解压到的目录 @return err 返回错误

func Zip

func Zip(dest string, filepath ...string) (err error)

压缩指定文件或文件夹 @param dest 压缩后的zip文件目标,如/usr/local/hello.zip @param filepath 需要压缩的文件或者文件夹 @return err 错误。如果返回错误,则会删除dest文件

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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