Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use small U #8

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Compression and Archive Extensions
==================================

[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/Unknwon/cae)
[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/unknwon/cae)

[中文文档](README_ZH.md)

Expand All @@ -11,11 +11,11 @@ But this package has some modifications depends on Go-style.

Reference: [PHP:Compression and Archive Extensions](http://www.php.net/manual/en/refs.compression.php).

Code Convention: based on [Go Code Convention](https://github.com/Unknwon/go-code-convention).
Code Convention: based on [Go Code Convention](https://github.com/unknwon/go-code-convention).

### Implementations

Package `zip`([Go Walker](http://gowalker.org/github.com/Unknwon/cae/zip)) and `tz`([Go Walker](http://gowalker.org/github.com/Unknwon/cae/tz)) both enable you to transparently read or write ZIP/TAR.GZ compressed archives and the files inside them.
Package `zip`([Go Walker](http://gowalker.org/github.com/unknwon/cae/zip)) and `tz`([Go Walker](http://gowalker.org/github.com/unknwon/cae/tz)) both enable you to transparently read or write ZIP/TAR.GZ compressed archives and the files inside them.

- Features:
- Add file or directory from everywhere to archive, no one-to-one limitation.
Expand Down
6 changes: 3 additions & 3 deletions README_ZH.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
压缩与打包扩展
=============

[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/Unknwon/cae)
[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/unknwon/cae)

包 cae 实现了 PHP 风格的压缩与打包扩展。

但本包依据 Go 语言的风格进行了一些修改。

引用:[PHP:Compression and Archive Extensions](http://www.php.net/manual/en/refs.compression.php)

编码规范:基于 [Go 编码规范](https://github.com/Unknwon/go-code-convention)
编码规范:基于 [Go 编码规范](https://github.com/unknwon/go-code-convention)

### 实现

包 `zip`([Go Walker](http://gowalker.org/github.com/Unknwon/cae/zip)) 和 `tz`([Go Walker](http://gowalker.org/github.com/Unknwon/cae/tz)) 都允许你轻易的读取或写入 ZIP/TAR.GZ 压缩档案和其内部文件。
包 `zip`([Go Walker](http://gowalker.org/github.com/unknwon/cae/zip)) 和 `tz`([Go Walker](http://gowalker.org/github.com/unknwon/cae/tz)) 都允许你轻易的读取或写入 ZIP/TAR.GZ 压缩档案和其内部文件。

- 特性:
- 将任意位置的文件或目录加入档案,没有一对一的操作限制。
Expand Down
2 changes: 1 addition & 1 deletion cae/cae.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"log"
"os"

"github.com/Unknwon/cae/tz"
"github.com/unknwon/cae/tz"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tz/tz.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"path/filepath"
"strings"

"github.com/Unknwon/cae"
"github.com/unknwon/cae"
)

// A File represents a file or directory entry in archive.
Expand Down
2 changes: 1 addition & 1 deletion tz/tz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"
"testing"

"github.com/Unknwon/com"
. "github.com/smartystreets/goconvey/convey"
"github.com/unknwon/com"
)

func TestCreate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tz/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"path/filepath"
"strings"

"github.com/Unknwon/cae"
"github.com/unknwon/cae"
)

// Switcher of printing trace information when pack and extract.
Expand Down
4 changes: 2 additions & 2 deletions zip/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"strings"

"github.com/Unknwon/cae"
"github.com/unknwon/cae"
)

// Switcher of printing trace information when pack and extract.
Expand Down Expand Up @@ -231,7 +231,7 @@ func packFile(srcFile string, recPath string, zw *zip.Writer, fi os.FileInfo) er
return err
}
defer f.Close()

if _, err = io.Copy(fw, f); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion zip/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path"
"strings"

"github.com/Unknwon/cae"
"github.com/unknwon/cae"
)

// A File represents a file or directory entry in archive.
Expand Down
4 changes: 2 additions & 2 deletions zip/zip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"strings"
"testing"

"github.com/Unknwon/cae"
"github.com/Unknwon/com"
. "github.com/smartystreets/goconvey/convey"
"github.com/unknwon/cae"
"github.com/unknwon/com"
)

func TestCreate(t *testing.T) {
Expand Down