Skip to content

Commit

Permalink
unexport tarExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Mar 23, 2024
1 parent ca230db commit 440ca69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/archive/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 440ca69

Please sign in to comment.