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
}
Click to show internal directories.
Click to hide internal directories.