archive

package
v0.4.2-47-g7fa5500 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unarchive

func Unarchive(src, dst string, opts ...UnarchiveOption) error

Unarchive takes an input src file and determines (based on its extension)

func UntarGz

func UntarGz(src, dst string, opts ...UnarchiveOption) error

UntarGz unarchives a tarball which has been gzip compressed

Types

type UnarchiveOption

type UnarchiveOption func(uo *UnarchiveOptions) error

func StripComponents

func StripComponents(sc int) UnarchiveOption

type UnarchiveOptions

type UnarchiveOptions struct {
	StripComponents int
}

Jump to

Keyboard shortcuts

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