diff options
Diffstat (limited to 'vendor/github.com/Unknwon/cae')
-rw-r--r-- | vendor/github.com/Unknwon/cae/.gitignore | 25 | ||||
-rw-r--r-- | vendor/github.com/Unknwon/cae/README.md | 37 | ||||
-rw-r--r-- | vendor/github.com/Unknwon/cae/README_ZH.md | 29 | ||||
l--------- | vendor/github.com/Unknwon/cae/tz/testdata/test.lnk | 1 | ||||
l--------- | vendor/github.com/Unknwon/cae/tz/testdata/testdir.lnk | 1 | ||||
l--------- | vendor/github.com/Unknwon/cae/zip/testdata/test.lnk | 1 | ||||
l--------- | vendor/github.com/Unknwon/cae/zip/testdata/testdir.lnk | 1 |
7 files changed, 91 insertions, 4 deletions
diff --git a/vendor/github.com/Unknwon/cae/.gitignore b/vendor/github.com/Unknwon/cae/.gitignore new file mode 100644 index 0000000000..b6c97b1593 --- /dev/null +++ b/vendor/github.com/Unknwon/cae/.gitignore @@ -0,0 +1,25 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test +.idea + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +cae.iml +*.exe +.DS_Store diff --git a/vendor/github.com/Unknwon/cae/README.md b/vendor/github.com/Unknwon/cae/README.md new file mode 100644 index 0000000000..e72de97205 --- /dev/null +++ b/vendor/github.com/Unknwon/cae/README.md @@ -0,0 +1,37 @@ +Compression and Archive Extensions +================================== + +[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/Unknwon/cae) + +[中文文档](README_ZH.md) + +Package cae implements PHP-like Compression and Archive Extensions. + +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). + +### 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. + +- Features: + - Add file or directory from everywhere to archive, no one-to-one limitation. + - Extract part of entries, not all at once. + - Stream data directly into `io.Writer` without any file system storage. + +### Test cases and Coverage + +All subpackages use [GoConvey](http://goconvey.co/) to write test cases, and coverage is more than 80 percent. + +### Use cases + +- [Gogs](https://github.com/gogits/gogs): self hosted Git service in the Go Programming Language. +- [GoBlog](https://github.com/fuxiaohei/GoBlog): personal blogging application. +- [GoBuild](https://github.com/shxsun/gobuild/): online Go cross-platform compilation and download service. + +## License + +This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text.
\ No newline at end of file diff --git a/vendor/github.com/Unknwon/cae/README_ZH.md b/vendor/github.com/Unknwon/cae/README_ZH.md new file mode 100644 index 0000000000..e2f8747ee4 --- /dev/null +++ b/vendor/github.com/Unknwon/cae/README_ZH.md @@ -0,0 +1,29 @@ +压缩与打包扩展 +============= + +[![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) + +### 实现 + +包 `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 压缩档案和其内部文件。 + +- 特性: + - 将任意位置的文件或目录加入档案,没有一对一的操作限制。 + - 只解压部分文件,而非一次性解压全部。 + - 将数据以流的形式直接写入 `io.Writer` 而不需经过文件系统的存储。 + +### 测试用例与覆盖率 + +所有子包均采用 [GoConvey](http://goconvey.co/) 来书写测试用例,覆盖率均超过 80%。 + +## 授权许可 + +本项目采用 Apache v2 开源授权许可证,完整的授权说明已放置在 [LICENSE](LICENSE) 文件中。
\ No newline at end of file diff --git a/vendor/github.com/Unknwon/cae/tz/testdata/test.lnk b/vendor/github.com/Unknwon/cae/tz/testdata/test.lnk deleted file mode 120000 index b317dc9d26..0000000000 --- a/vendor/github.com/Unknwon/cae/tz/testdata/test.lnk +++ /dev/null @@ -1 +0,0 @@ -test.zip
\ No newline at end of file diff --git a/vendor/github.com/Unknwon/cae/tz/testdata/testdir.lnk b/vendor/github.com/Unknwon/cae/tz/testdata/testdir.lnk deleted file mode 120000 index 9f6260d6f5..0000000000 --- a/vendor/github.com/Unknwon/cae/tz/testdata/testdir.lnk +++ /dev/null @@ -1 +0,0 @@ -testdir
\ No newline at end of file diff --git a/vendor/github.com/Unknwon/cae/zip/testdata/test.lnk b/vendor/github.com/Unknwon/cae/zip/testdata/test.lnk deleted file mode 120000 index b317dc9d26..0000000000 --- a/vendor/github.com/Unknwon/cae/zip/testdata/test.lnk +++ /dev/null @@ -1 +0,0 @@ -test.zip
\ No newline at end of file diff --git a/vendor/github.com/Unknwon/cae/zip/testdata/testdir.lnk b/vendor/github.com/Unknwon/cae/zip/testdata/testdir.lnk deleted file mode 120000 index 9f6260d6f5..0000000000 --- a/vendor/github.com/Unknwon/cae/zip/testdata/testdir.lnk +++ /dev/null @@ -1 +0,0 @@ -testdir
\ No newline at end of file |