Go to file
2019-09-02 00:38:49 +08:00
test init 2019-08-08 21:50:32 +08:00
.gitignore 添加对XP的支持 2019-09-02 00:31:53 +08:00
.travis.yml init 2019-08-08 21:50:32 +08:00
go.mod init 2019-08-08 21:50:32 +08:00
LICENSE Initial commit 2019-08-08 10:27:45 +08:00
README.md 添加说明 2019-09-02 00:38:49 +08:00
unzip_test.go 添加对XP的支持 2019-09-02 00:31:53 +08:00
unzip.go 添加对XP的支持 2019-09-02 00:33:03 +08:00
util_unix.go 添加对XP的支持 2019-09-02 00:31:53 +08:00
util_windows.go 添加对XP的支持 2019-09-02 00:31:53 +08:00

Unzip

Build Status GoDoc

Golang *.zip decompress.

Fork from https://github.com/artdarek/go-unzip and remove print, add support for Symlink.

Thank artdarek.

Usage

import "github.com/yi-ge/unzip"

u := unzip.New(filePath, outDir)
err := u.Extract()

Notice

由于 Golang1.12 不再支持 Windows XP因此使用 Golang 自带的 zip 库将在 XP 系统下发生报错,此库对老版本的支持则是自动下载远程unzip.exe并自动调用http://infozip.sourceforge.net/UnZip.html实现。