zszip

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 6 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{}

func New

func New() *Zip

func (Zip) Create

func (z Zip) Create(source string, files []string) error

Create compresses the specified files into a zip archive at the given source path. Existing files at the source path are overwritten. It uses specific compression methods while processing files. Returns an error if any step fails.

func (Zip) Extract

func (z Zip) Extract(source, destination string) (extractedFiles []string, err error)

Extract extracts files from a zip archive at the specified source path to the given destination directory. It returns a slice of extracted file names and an error if the operation fails.

Jump to

Keyboard shortcuts

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