archives

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: MIT Imports: 12 Imported by: 29

Documentation

Index

Constants

View Source
const ZipTimestampFieldType = 0x5455
View Source
const ZipUIDGidFieldType = 0x7875

Variables

This section is empty.

Functions

func CreateZipArchive

func CreateZipArchive(w io.Writer, fileNames []string) error

func CreateZipFile

func CreateZipFile(fileName string, fileNames []string) error

func ExtractZipArchive

func ExtractZipArchive(archive *zip.Reader) error

func ExtractZipFile

func ExtractZipFile(fileName string) error

Types

type ZipExtraField

type ZipExtraField struct {
	Type uint16
	Size uint16
}

ZipExtraField is taken from https://github.com/LuaDist/zip/blob/master/proginfo/extrafld.txt

type ZipTimestampField

type ZipTimestampField struct {
	Flags   uint8
	ModTime uint32
}

type ZipUIDGidField

type ZipUIDGidField struct {
	Version uint8
	UIDSize uint8
	UID     uint32
	GIDSize uint8
	Gid     uint32
}

Jump to

Keyboard shortcuts

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