archives

package
v10.7.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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