simplezip

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: AGPL-3.0 Imports: 9 Imported by: 2

README

simplezip

A simple Go module to zip and unzip files.

Works on Windows & Linux.

License

See LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unzip

func Unzip(dirPath, outPath string) error

func UnzipByPrefixWithMessenger

func UnzipByPrefixWithMessenger(dirPath, outPath, extractPrefix string, messenger ZipMessenger) error

func Zip

func Zip(dirPath string, outPath string) error

func ZipWithMessenger

func ZipWithMessenger(dirPath string, outPath string, messenger ZipMessenger) error

Types

type ZipMessenger

type ZipMessenger struct {
	AddedFile func(string)
}

func DefaultUnzipMessenger

func DefaultUnzipMessenger() ZipMessenger

func DefaultZipMessenger

func DefaultZipMessenger() ZipMessenger

Jump to

Keyboard shortcuts

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