files

package
v0.5.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArchive

func IsArchive(path string) bool

IsArchive returns true if the provided path has a .tar, .tar.gz, or .tgz extension.

func Untar

func Untar(path string, dest string, options ...Option) error

Untar extracts the contents of a tar or tar.gz archive to the specified destination directory.

Types

type Option

type Option func(*untarOptions)

Option defines a functional option for configuring the Untar function.

func RemoveArchive

func RemoveArchive(remove bool) Option

RemoveArchive is an option that configures whether to remove the archive file after extraction.

Jump to

Keyboard shortcuts

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