Skip to content

Commit 04c5139

Browse files
authored
Merge pull request #138 from ketzacoatl/patch-1
link in support for the tarDecompressor, so it can be used on .tar files
2 parents af95113 + 2c20c40 commit 04c5139

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

decompress.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type Decompressor interface {
2323
var Decompressors map[string]Decompressor
2424

2525
func init() {
26+
tarDecompressor := new(tarDecompressor)
2627
tbzDecompressor := new(TarBzip2Decompressor)
2728
tgzDecompressor := new(TarGzipDecompressor)
2829
txzDecompressor := new(TarXzDecompressor)
@@ -32,6 +33,7 @@ func init() {
3233
"bz2": new(Bzip2Decompressor),
3334
"gz": new(GzipDecompressor),
3435
"xz": new(XzDecompressor),
36+
"tar": tarDecompressor,
3537
"tar.bz2": tbzDecompressor,
3638
"tar.gz": tgzDecompressor,
3739
"tar.xz": txzDecompressor,

0 commit comments

Comments
 (0)