Archiver 3.2 sports massive performance improvements for gzip (thanks to @klauspost's parallel gzip implementation, which is now used by default) and support for brotli and zstandard formats, along with a few other fixes and improvements.
This library is now a Go module as well.
A few minor internal tweaks/improvements.
This release adds some new convenience functions for working with archive files or compressing/decompressing files:
DecompressFile(). These functions are format-agnostic, and they determine which format to use by the filename (or file header, in the case of Unarchive). This way, you don't have to
switch based on file extension for these simple operations. The library does it for you.
Also exposed are new, slightly lower-level functions, for performing format matching:
See the godoc documentation for more details.
This patch release fixes several bugs related to pathing operations when creating archives and fixes an issue listing the contents of zip archives. All users should upgrade.
Totally rewrote the archiver package, basically from scratch. Fixed many issues and implemented many new features. The command has been renamed from
arc and now has several different functions, instead of just "make" and "open" (which have also been renamed). The package is capable of traversing archives, extracting specific files, and streaming archive data without touching the file system.
This release adds support for .tar.xz (and .txz) file format, thanks to ulikunitz/xz.
archiver package also has a breaking API change, hence the v2.0 tag. For example,
archiver.Unzip() have become
This release adds support for plain, uncompressed .tar files.