Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zip ¶
type Zip struct {
// contains filtered or unexported fields
}
func NewZip ¶
create Zip instance, if verbose is true, it will print file name when archiving file to zip or extracting file from zip.
func (*Zip) Unzip ¶
unzip src to dst, if dst is empty, the contents will extract to current work directory, otherwise put into dst directory.
func (*Zip) ZipDir ¶
create a zip file from given directory. when overwrite enabled, it will delete dst first (if exist), or else return a dst already existed error. when create_root enabled, it will create a directory named src and put all contents into it.
Click to show internal directories.
Click to hide internal directories.