Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZIP = ".zip" TAR = ".tar" TARGZ = ".tar.gz" )
View Source
const DEFAULT_DIR_MODE = 0740
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ctx context.Context Name string Include TestFunc Exclude TestFunc Outdir string IsFlat bool Type string }
Config is an internal form of unarchive data source model
type ExtractInfo ¶
ExtractInfo is the result of the extraction
func Extract ¶
func Extract(conf *Config) ExtractInfo
Extract is the main function to extract files from an archive file
Click to show internal directories.
Click to hide internal directories.