Help us shape the future of Go! Take the 2026 Go Developer Survey

archiver

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tar

func Tar(srcPath string, workDir string) (io.Reader, error)

Tar creates a tar archive of the specified path (file or directory) and returns the content as a stream. For individual files, it preserves the directory structure relative to the working directory.

func Untar

func Untar(reader io.Reader, destPath string) error

Untar extracts the contents of a tar archive from the provided reader to the specified destination path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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