Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

3.1

Compare
Choose a tag to compare
@mholt mholt released this 18 Nov 22:52
· 150 commits to master since this release
e1ccfb5

This release adds some new convenience functions for working with archive files or compressing/decompressing files: Archive(), Unarchive(), CompressFile(), and 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: ByExtension() and ByHeader().

See the godoc documentation for more details.