Documentation
¶
Overview ¶
Package archive provides zip/unzip utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListEntry ¶
type ListEntry struct {
Name string `json:"name"`
Size int64 `json:"size"`
Compressed int64 `json:"compressed"`
IsDir bool `json:"is_dir"`
Modified string `json:"modified"`
}
ListEntry represents an entry in an archive.
type UnzipOptions ¶
type UnzipOptions struct {
Overwrite bool // Overwrite existing files
}
UnzipOptions configures extraction.
type ZipOptions ¶
type ZipOptions struct {
CompressionLevel int // 0-9, -1 for default
}
ZipOptions configures zip creation.
func DefaultZipOptions ¶
func DefaultZipOptions() ZipOptions
DefaultZipOptions returns sensible defaults.
Click to show internal directories.
Click to hide internal directories.