Git with a cup of tea, painless self-hosted git service Mirror for internal git.with.parts use https://git.with.parts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
gitea/vendor/github.com/unknwon/cae
Tamal Saha 171b359877 Use gitea forked macaron (#7933) 5 years ago
..
zip Use gitea forked macaron (#7933) 5 years ago
.gitignore Use gitea forked macaron (#7933) 5 years ago
LICENSE Use gitea forked macaron (#7933) 5 years ago
README.md Use gitea forked macaron (#7933) 5 years ago
README_ZH.md Use gitea forked macaron (#7933) 5 years ago
cae.go Use gitea forked macaron (#7933) 5 years ago

README.md

Compression and Archive Extensions

Go Walker

中文文档

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.

Code Convention: based on Go Code Convention.

Implementations

Package zip(Go Walker) and tz(Go Walker) 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 to write test cases, and coverage is more than 80 percent.

Use cases

  • Gogs: self hosted Git service in the Go Programming Language.
  • GoBlog: personal blogging application.
  • GoBuild: online Go cross-platform compilation and download service.

License

This project is under Apache v2 License. See the LICENSE file for the full license text.