unzip/README.md

24 lines
811 B
Markdown
Raw Permalink Normal View History

2019-08-08 21:50:32 +08:00
# Unzip
[![Build Status](https://img.shields.io/travis/com/yi-ge/unzip/master.svg)](https://travis-ci.com/yi-ge/unzip)
[![GoDoc](https://godoc.org/github.com/yi-ge/unzip?status.svg)](https://godoc.org/github.com/yi-ge/unzip)
2019-08-08 21:55:17 +08:00
Golang \*.zip decompress.
2019-08-08 21:50:32 +08:00
Fork from [https://github.com/artdarek/go-unzip](https://github.com/artdarek/go-unzip) and remove print, add support for Symlink.
Thank artdarek.
## Usage
```golang
import "github.com/yi-ge/unzip"
u := unzip.New(filePath, outDir)
err := u.Extract()
```
2019-09-02 00:38:49 +08:00
## Notice
由于 Golang1.12 不再支持 Windows XP因此使用 Golang 自带的 zip 库将在 XP 系统下发生报错,此库对老版本的支持则是自动下载远程`unzip.exe`并自动调用[http://infozip.sourceforge.net/UnZip.html](http://infozip.sourceforge.net/UnZip.html)实现。