zip

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(srcPath, outPath string) (err error)

文件夹压缩: usage:

var err error
err = com.Zip.Compress("/data/test","/data/test.zip")
err = com.Zip.Compress("C:\Coding\DeepLabel\data\test5","C:\Coding\DeepLabel\data\test5.zip")
if err != nil {
	fmt.Println(err.Error())
}

func DeCompress

func DeCompress(src, dst string) (err error)

解压缩: usage:

var err error
com.Zip.DeCompress("/data/test.zip", "/data/test")
com.Zip.DeCompress("C:\Coding\DeepLabel\data\test5.zip", "C:\Coding\DeepLabel\data\test5")
if err != nil {
	fmt.Println(err.Error())
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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