zip

package
v0.0.0-...-e9fe98c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zip

type Zip struct {
	// contains filtered or unexported fields
}

Zip describes a zip file.

func NewZip

func NewZip(url string) *Zip

NewZip returns a new Zip source.

func (Zip) GetChecksum

func (m Zip) GetChecksum() string

GetChecksum returns the combined checksum for the zip file.

func (Zip) GetFiles

func (m Zip) GetFiles() []string

GetFiles returns the files contained in the zip file.

func (*Zip) PrepareFiles

func (m *Zip) PrepareFiles(dest string) error

PrepareFiles downloads a zip file to a given destination and extracts info about the files in the zip.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL