Documentation ¶
Overview ¶
Package archive implements functionality to walk through and create archives
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type defines what the archive format is
func InferType ¶
InferType attempts to guess an archive's type from its filepath, if it cannot guess confidently then an error is returned
type ZipFile ¶
type ZipFile struct {
// contains filtered or unexported fields
}
ZipFile implements a method to write files into a zip archive. After creating a new file with NewZipFile() you can write to the file using z.Write(). You must close the writer when you are done and then you can retrieve the file bytes using z.Data()
func NewZipFile ¶
NewZipFile creates a new zip file and opens it ready for writing
func (*ZipFile) CloseWriter ¶
CloseWriter closes the internal zip file writer, no files should be written to the archive after this is called