We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5042b2d commit 9c84a22Copy full SHA for 9c84a22
README.md
@@ -4,8 +4,8 @@
4
5
Go中用来解压zip文件的API,优势:
6
7
-- 在原生的zip.File的基础上封账了一些易用API
8
-- 支持并发解压zip文件
+- 在原生的zip.File的基础上封装了易用API,一键解压
+- 支持并发解压zip文件
9
10
# 二、安装
11
@@ -15,7 +15,26 @@ go get -u github.com/compression-algorithm-research-lab/go-unzip
15
16
# 三、API示例
17
18
-TODO
+```go
19
+package main
20
+
21
+import "github.com/compression-algorithm-research-lab/go-unzip"
22
23
+func main() {
24
25
+ options := unzip.NewOptions().
26
+ SetSourceZipFile("test_data/foo.zip").
27
+ SetDestinationDirectory("test_data/foo").
28
+ SetWorkerNum(100)
29
+ err := unzip.New(options).Unzip()
30
+ if err != nil {
31
+ panic(err)
32
+ }
33
34
+}
35
+```
36
37
38
39
40
0 commit comments