zipper

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZIPPER_INPUT_DESTINATION = iota
	ZIPPER_INPUT_SOURCE
)

Variables

View Source
var (
	ErrOutputNotSet = errors.New("arquivo de destino não definido")
	ErrNoFilesToZip = errors.New("nenhum arquivo para zipar")
)

Functions

This section is empty.

Types

type Zipper

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

func NewZipper

func NewZipper() *Zipper

func (*Zipper) AddFile

func (z *Zipper) AddFile(fileSource, fileDestination string)

func (*Zipper) FileList

func (z *Zipper) FileList(zipFile string) ([]string, error)

func (*Zipper) SetOutput

func (z *Zipper) SetOutput(output string)

func (*Zipper) Unzip

func (z *Zipper) Unzip(zipFile string) error

func (*Zipper) Zip

func (z *Zipper) Zip() error

Jump to

Keyboard shortcuts

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