uncompr

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extracter

type Extracter interface {
	Name() string
	Open() (io.ReadCloser, error)
	Close() error
}

Extracter can extracts its file's content.

type Lister

type Lister interface {
	List() []Extracter
	Close() error
}

Lister can list the archive's contents.

func NewRarLister

func NewRarLister(r io.Reader) (Lister, error)

NewRarLister copies the contents of the io.Reader into "rar.rar" under a temp directory, which is used for extraction, too.

func NewZipLister

func NewZipLister(r io.Reader) (Lister, error)

NewZipLister slurps the reader and returns a Listere for the zip.

Jump to

Keyboard shortcuts

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