reader

package
v0.0.0-...-6e7b241 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func New

func New(source string) (*Reader, error)

New returns an instanced of the Reader and opens the zipfile specified as source for reading.

func (*Reader) Close

func (r *Reader) Close()

Close closes the underlying zip reader

func (*Reader) ExtractTo

func (r *Reader) ExtractTo(dest string) error

ExtractTo extracts all of the files and folders in the zip archive to the the directory specified by dest. The filel strcuture is preserved.

func (*Reader) Files

func (r *Reader) Files() []*zip.File

Files returns a list of files in the zip archive

Jump to

Keyboard shortcuts

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