Documentation ¶
Index ¶
- Constants
- func ContentsFromZip(archivePath string, paths ...string) (map[string]string, error)
- func ExtractFromZipToUniqueTempFile(archivePath, dir string, paths ...string) (map[string]Opener, error)
- func GlobMatch(pattern, name string) bool
- func TraverseFilesInZip(archivePath string, visitor func(*zip.File) error, paths ...string) error
- func UnzipToDir(archivePath, targetDir string) error
- type Opener
- type ZipFileManifest
Constants ¶
View Source
const ( KB = 1 << (10 * iota) MB GB )
Variables ¶
This section is empty.
Functions ¶
func ContentsFromZip ¶
func TraverseFilesInZip ¶
func UnzipToDir ¶
Types ¶
type ZipFileManifest ¶
func NewZipFileManifest ¶
func NewZipFileManifest(archivePath string) (ZipFileManifest, error)
func (ZipFileManifest) GlobMatch ¶
func (z ZipFileManifest) GlobMatch(patterns ...string) []string
Click to show internal directories.
Click to hide internal directories.