zip

package
v0.0.0-...-aca6ddf Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Zip

func Zip(src_dir string, zip_file_name string)

打包成zip文件

func ZipAppendFile

func ZipAppendFile(zipPath string, filename string, content []byte) *bytes.Buffer

func ZipAppendFiles

func ZipAppendFiles(zipPath string, files ...*FileItem) *bytes.Buffer

Types

type FileItem

type FileItem struct {
	Name string
	Body []byte
}

Jump to

Keyboard shortcuts

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