Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
Option is a setter for assigning values to Options
func DeleteSource ¶
DeleteSource creates a setter for Options.DeleteSource values
func Destination ¶
Destination creates a setter for Options.Destination values
func StripComponents ¶
StripComponents creates a setter for Options.StripComponents values
type Options ¶
type Options struct { // Destination directory of the unzipped contents. // If the directory does not exist it will be created. // Defaults to match path and name of the source zip, without the file extension Destination string // Number of leading components to strip from file paths (same as tar --strip-components) // Defaults to 0 StripComponents uint // Whether the original zip should be removed after unzipping // Defaults to false DeleteSource bool }
Options passed to the Unzip method
Click to show internal directories.
Click to hide internal directories.