Documentation ¶
Index ¶
- 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 UnzipFileToMem(src string) (map[string][]byte, error)
- func UnzipMemToMem(zipBytes []byte) (map[string][]byte, error)
- func UnzipToFile(src string, destPath string) ([]string, error)
- func UnzipToMem(r *zip.Reader) (map[string][]byte, error)
- type BytesInput
- type DirInput
- type Error
- type ErrorKind
- type FileInput
- type FileListInput
- type Input
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorDuplicateZipPath ¶ added in v0.4.0
Types ¶
type BytesInput ¶
type Error ¶ added in v0.4.0
type Error struct { Kind ErrorKind // contains filtered or unexported fields }
type ErrorKind ¶ added in v0.4.0
type ErrorKind int
func (ErrorKind) MarshalBinary ¶ added in v0.4.0
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶ added in v0.4.0
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶ added in v0.4.0
UnmarshalText satisfies TextUnmarshaler
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.