Skip to content

Commit

Permalink
link in support for the tarDecompressor, so it can be used on .tar files
Browse files Browse the repository at this point in the history
resolve #19.
  • Loading branch information
ketzacoatl authored Dec 13, 2018
1 parent be39683 commit 2c20c40
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 @@ -22,6 +22,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 @@ -30,6 +31,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 2c20c40

Please sign in to comment.