tarutil

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFilesWithPrefix = errors.New("no files in tarball have prefix")

Functions

func Extract

func Extract(r io.Reader, dir string, opts ...Opt) error

Extract reads the tar file from r and writes it into dir. This was copied and modified from golang.org/x/build/internal/untar.

func IsGzipped

func IsGzipped(o *Opts)

func StripPrefix

func StripPrefix(r io.Reader, prefix string, opts ...Opt) io.ReadCloser

Types

type Opt

type Opt func(*Opts)

type Opts

type Opts struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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