Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZipArchive ¶
type ZipArchive struct {
// contains filtered or unexported fields
}
func (*ZipArchive) AddPath ¶
func (za *ZipArchive) AddPath(srcPath string, destPath ...string) error
Adds an existing file or directory to the archive with an optional destination path
func (*ZipArchive) Close ¶
func (za *ZipArchive) Close() ([]byte, error)
Closes the zip archive and returns the contents
func (*ZipArchive) CreateFile ¶
func (za *ZipArchive) CreateFile(fileName, content string) error
Creates a new file in the archive
Click to show internal directories.
Click to hide internal directories.