From 2c20c40935a3e6b3deef71ca9d2ffab2c27f662a Mon Sep 17 00:00:00 2001 From: ketzacoatl Date: Thu, 13 Dec 2018 10:29:06 -0500 Subject: [PATCH] link in support for the tarDecompressor, so it can be used on .tar files resolve #19. --- decompress.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/decompress.go b/decompress.go index 198bb0edd..ccd730471 100644 --- a/decompress.go +++ b/decompress.go @@ -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) @@ -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,