zip

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unzip

func Unzip(reader io.ReaderAt, size int64, dir string) error

func UnzipFile

func UnzipFile(zipFile string, dir string) error

func ZipDir

func ZipDir(dir string, file string) error

func ZipIntoWriter

func ZipIntoWriter(dir string, writer io.Writer) error

Types

type Zipper

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

func NewZipper

func NewZipper(writer io.Writer) *Zipper

func (*Zipper) Close

func (z *Zipper) Close() error

func (*Zipper) CompressDir

func (z *Zipper) CompressDir(dir string) error

func (*Zipper) CompressFile

func (z *Zipper) CompressFile(filename string, base string) error

func (*Zipper) CompressFileInfoAndContent

func (z *Zipper) CompressFileInfoAndContent(name string, info os.FileInfo, data []byte) error

func (*Zipper) CompressFileWithInfo

func (z *Zipper) CompressFileWithInfo(filename string, base string, info os.FileInfo) error

func (*Zipper) CompressFileWithInfoAndReader

func (z *Zipper) CompressFileWithInfoAndReader(name string, info os.FileInfo, reader io.Reader) error

Jump to

Keyboard shortcuts

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