Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TarFileType ¶
Types ¶
type Archive ¶
func NewTarArchive ¶
func NewTarArchive(data []byte, decompress DecompressFunc) (Archive, error)
func NewZipArchive ¶
func NewZipArchive(data []byte, _ DecompressFunc) (Archive, error)
decompressor does nothing for a zip archive because it already has built-in compression.
type ArchiveFunc ¶
type ArchiveFunc func(data []byte, decomp DecompressFunc) (Archive, error)
type TarArchive ¶
type TarArchive struct {
// contains filtered or unexported fields
}
func (*TarArchive) ReadAll ¶
func (t *TarArchive) ReadAll() ([]byte, error)
type ZipArchive ¶
type ZipArchive struct {
// contains filtered or unexported fields
}
func (*ZipArchive) ReadAll ¶
func (z *ZipArchive) ReadAll() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.