Skip to content

Commit

Permalink
Merge pull request #138 from ketzacoatl/patch-1
Browse files Browse the repository at this point in the history
link in support for the tarDecompressor, so it can be used on .tar files
  • Loading branch information
schmichael authored Jun 29, 2021
2 parents af95113 + 2c20c40 commit 04c5139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decompress.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type Decompressor interface {
var Decompressors map[string]Decompressor

func init() {
tarDecompressor := new(tarDecompressor)
tbzDecompressor := new(TarBzip2Decompressor)
tgzDecompressor := new(TarGzipDecompressor)
txzDecompressor := new(TarXzDecompressor)
Expand All @@ -32,6 +33,7 @@ func init() {
"bz2": new(Bzip2Decompressor),
"gz": new(GzipDecompressor),
"xz": new(XzDecompressor),
"tar": tarDecompressor,
"tar.bz2": tbzDecompressor,
"tar.gz": tgzDecompressor,
"tar.xz": txzDecompressor,
Expand Down

0 comments on commit 04c5139

Please sign in to comment.