diff --git a/README.md b/README.md index e72de97..ff6f97e 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/README_ZH.md b/README_ZH.md index e2f8747..d5c361e 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,7 +1,7 @@ 压缩与打包扩展 ============= -[![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 风格的压缩与打包扩展。 @@ -9,11 +9,11 @@ 引用:[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 压缩档案和其内部文件。 - 特性: - 将任意位置的文件或目录加入档案,没有一对一的操作限制。 diff --git a/cae/cae.go b/cae/cae.go index 7dbce08..2e85548 100644 --- a/cae/cae.go +++ b/cae/cae.go @@ -19,7 +19,7 @@ import ( "log" "os" - "github.com/Unknwon/cae/tz" + "github.com/unknwon/cae/tz" ) func main() { diff --git a/tz/tz.go b/tz/tz.go index 5e3f6de..e8cdb11 100644 --- a/tz/tz.go +++ b/tz/tz.go @@ -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. diff --git a/tz/tz_test.go b/tz/tz_test.go index 8518cbf..60fa6e7 100644 --- a/tz/tz_test.go +++ b/tz/tz_test.go @@ -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) { diff --git a/tz/write.go b/tz/write.go index d795cdb..6950854 100644 --- a/tz/write.go +++ b/tz/write.go @@ -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. diff --git a/zip/write.go b/zip/write.go index 076d0e3..5d46796 100644 --- a/zip/write.go +++ b/zip/write.go @@ -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. @@ -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 } diff --git a/zip/zip.go b/zip/zip.go index 21086f8..b5d7d10 100644 --- a/zip/zip.go +++ b/zip/zip.go @@ -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. diff --git a/zip/zip_test.go b/zip/zip_test.go index aeab14d..a10bc17 100644 --- a/zip/zip_test.go +++ b/zip/zip_test.go @@ -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) {