Documentation ¶
Overview ¶
Package archive contains types related to zip handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZipData ¶
type ZipData interface { Files() []*zip.File FileByName(name string) (file *zip.File, err error) FilesByName(substring string) (files []*zip.File, err error) // contains filtered or unexported methods }
ZipData defines the common interface for different zip-handling types.
type ZipFile ¶
type ZipFile struct {
// contains filtered or unexported fields
}
ZipFile is an implementation of the ZipData interface for actual zip files.
func MakeZipFile ¶
MakeZipFile creates a ZipFile for an actual zip file given by its path.
func MakeZipFileFromUrl ¶ added in v1.0.4
MakeZipFileFromUrl creates a ZipFile from a URL
func (*ZipFile) FileByName ¶
FileByName finds the file with the given name or returns an error.
Click to show internal directories.
Click to hide internal directories.