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 NewZipFile ¶
NewZipFile creates a ZipFile for an actual zip file given by its path.
func NewZipFileFromUrl ¶
NewZipFileFromUrl creates a ZipFile from a URL
func (*ZipFile) FileByName ¶
FileByName finds the file with the given name or returns an error.
type ZipFileReader ¶
type ZipFileReader struct {
// contains filtered or unexported fields
}
func (*ZipFileReader) Close ¶
func (r *ZipFileReader) Close() error
func (*ZipFileReader) Files ¶
func (r *ZipFileReader) Files() []*zip.File
type ZipUrlReader ¶
type ZipUrlReader struct {
// contains filtered or unexported fields
}
func (*ZipUrlReader) Close ¶
func (r *ZipUrlReader) Close() error
func (*ZipUrlReader) Files ¶
func (r *ZipUrlReader) Files() []*zip.File
Click to show internal directories.
Click to hide internal directories.