Documentation ¶
Index ¶
- Constants
- func ErrorDuplicateZipPath(path string) error
- func ToFile(zipInput *Input, destPath string) error
- func ToMem(zipInput *Input) ([]byte, error)
- func ToWriter(zipInput *Input, writer io.Writer) error
- func UnzipFileToDir(src string, destPath string) ([]string, error)
- func UnzipFileToMem(src string) (map[string][]byte, error)
- func UnzipMemToMem(zipBytes []byte) (map[string][]byte, error)
- type BytesInput
- type DirInput
- type FileInput
- type FileListInput
- type Input
Constants ¶
View Source
const (
ErrDuplicateZipPath = "zip.duplicate_zip_path"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorDuplicateZipPath ¶ added in v0.4.0
func UnzipFileToDir ¶ added in v0.16.0
Types ¶
type BytesInput ¶
type FileListInput ¶
type Input ¶
type Input struct { Files []FileInput Bytes []BytesInput Dirs []DirInput FileLists []FileListInput AddPrefix string // Gets added to every item EmptyFiles []string // Empty files to be created AllowOverwrite bool // Don't error if a file in the zip is overwritten }
Click to show internal directories.
Click to hide internal directories.