archive

package
v0.0.0-...-d675ba8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressDeflate

func CompressDeflate(data []byte) (compressed []byte, err error)

func UncompressInflate

func UncompressInflate(data []byte) (uncompressed []byte, err error)

Types

type GzipTar

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

func NewGzipTar

func NewGzipTar() *GzipTar

func (*GzipTar) AddFile

func (t *GzipTar) AddFile(name string, content []byte, mode int64) (err error)

func (*GzipTar) Close

func (t *GzipTar) Close() (content []byte, err error)

type Tar

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

func NewTar

func NewTar() *Tar

func (*Tar) AddFile

func (t *Tar) AddFile(name string, content []byte, mode int64) (err error)

func (*Tar) Close

func (t *Tar) Close() (content []byte, err error)

Jump to

Keyboard shortcuts

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