archive

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarFileInBuffer

func TarFileInBuffer(fileContent []byte, fileName string, mode int64) ([]byte, error)

TarFileInBuffer will create a tar archive containing a single file named via fileName and using the content specified in fileContent. Returns the archive as a byte array.

func UnzipArchive

func UnzipArchive(archiveData []byte, dest string) error

UnzipArchive will unzip an archive from bytes into the dest destination folder on disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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