archives

package
v10.8.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 14 Imported by: 0

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