unarchiver

package
v0.0.0-...-37118a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unarchiver

type Unarchiver struct {
	archives.Extraction
}

func NewTarGz

func NewTarGz() Unarchiver

func NewZip

func NewZip() Unarchiver

func (*Unarchiver) PrepareUnpacking

func (ua *Unarchiver) PrepareUnpacking(source, destination string) (archiveFile *os.File, err error)

PrepareUnpacking prepares the destination directory and the archive for unpacking Returns the opened file

func (*Unarchiver) Unarchive

func (ua *Unarchiver) Unarchive(archiveStream io.Reader, destination string) error

Unarchive unarchives an archive file and unpacks it in `destination`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL