From 440ca69efa9e924cc7bfe5e1fc496ae63b6b7a73 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Sat, 23 Mar 2024 12:10:15 +0700 Subject: [PATCH] unexport tarExtractor --- internal/archive/tar.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/archive/tar.go b/internal/archive/tar.go index c758dc8..e02668c 100644 --- a/internal/archive/tar.go +++ b/internal/archive/tar.go @@ -24,17 +24,17 @@ import ( "path/filepath" ) -// _ ensures that TarExtractor implements the Extractor interface. -var _ Extractor = (&TarExtractor{}) +// _ ensures that tarExtractor implements the Extractor interface. +var _ Extractor = (&tarExtractor{}) // TarExtractor implements the Extractor interface for tar archives. -type TarExtractor struct{} +type tarExtractor struct{} -func (t *TarExtractor) Extensions() []string { +func (t *tarExtractor) Extensions() []string { return []string{"tar", "tgz", "tar.gz", "tar.xz", "txz", "tar.bz2"} } -func (t *TarExtractor) Extract(r io.Reader, ext, dest string) error { +func (t *tarExtractor) Extract(r io.Reader, ext, dest string) error { var container io.ReadCloser switch ext { case "tar":