tar

package
v0.0.0-...-e4c3a4d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSingleFile

func ReadSingleFile(filename string, r io.Reader) ([]byte, error)

ReadSingleFile will read a single file from a tar archive and return with its contents as a []byte. This should only be used to read small files from tar archives.

func UntarGz

func UntarGz(dst string, r io.Reader) error

UntarGz takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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