zipper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 7 Imported by: 0

README

Zipper

A package to easily create zip archives from single files and directories.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogger

func WithLogger(l *log.Logger) optFunc

Types

type Zipper

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

func NewZipper

func NewZipper(opts ...optFunc) (*Zipper, error)

func (*Zipper) Zip

func (z *Zipper) Zip(src string, dst string) error

Zip will create a zip file at the location dst from the contents at the path provided in src If src is a file, it will put the single file at the root level of the zip archive If src is a directory, it will place all the contents of the directory at the root level of the zip archivve

Jump to

Keyboard shortcuts

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