zip

package
v0.0.0-...-e43910c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

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

Archive keeps data to be zipped in RAM

func New

func New() *Archive

New creates a new instance to control the data that will be zipped.

func (*Archive) Add

func (a *Archive) Add(
	fileName string,
	content []byte) error

Add new files to the buffer

func (*Archive) Save

func (a *Archive) Save(zipFile string) error

Save the buffer with compressed data to a zip file

Jump to

Keyboard shortcuts

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