zip2

package
v0.0.0-...-36f034f Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressToBytes

func DecompressToBytes(ctx context.Context, zipBytes []byte) (map[string][]byte, error)

DecompressToBytes Decompress zip information to bytes

func PackagingToBuffer

func PackagingToBuffer(ctx context.Context, infos []FileInfo) (*bytes.Buffer, error)

PackagingToBuffer Compress information to zip io stream

Types

type FileInfo

type FileInfo struct {
	Name string
	Body []byte
}

FileInfo file information

Jump to

Keyboard shortcuts

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