archive

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE int = 1
	KB       = 1024 * BYTE
	MB       = 1024 * KB
	GB       = 1024 * MB
)

Data size definition

Variables

This section is empty.

Functions

func Compress

func Compress(src, dst string, format CompressFormat, size int) error

func Decompress

func Decompress(src string, dst string, format CompressFormat) error

Types

type CompressFormat

type CompressFormat int
const (
	CompressFormatGzip CompressFormat = iota
	CompressFormatZstd
	CompressFormatDirectory
)

func (CompressFormat) String

func (c CompressFormat) String() string

Directories

Path Synopsis
part package implements a ReadWriteCloser to write data into multi parts and read data from different parts
part package implements a ReadWriteCloser to write data into multi parts and read data from different parts

Jump to

Keyboard shortcuts

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