Versions in this module Expand all Collapse all v2 v2.2.1 May 14, 2024 v2.2.0 Apr 27, 2024 Changes in this version + type HashFD struct + func NewHashFD(name string) (*HashFD, error) + func (f *HashFD) Sum(name string) + func (f *HashFD) Write(p []byte) (int, error) + func (fd *HashFD) Close() error + func (fd *HashFD) WriteString(s string) (int, error) v2.1.1 Jan 16, 2022 v2.1.0 Nov 20, 2021 Changes in this version + const BROTLI + const BZIP2 + const Deflate + const LZMA + const RespondName + const Store + const TarISVTX + const XZ + const ZSTD + const ZipISVTX + type HashableFile struct + func OpenHashableFile(name string) (*HashableFile, error) + func (f *HashableFile) Close() error + func (f *HashableFile) Hashsum(name string) + func (f *HashableFile) Write(p []byte) (int, error) + func (f *HashableFile) WriteString(s string) (int, error) + type Packer interface + AddFile func(src, nameInArchive string) error + AddFileEx func(src, nameInArchive string, exerights bool) error + AddTargetLink func(nameInArchive, linkName string) error + Close func() error + type PortableExecutablePacker struct + type RespondWriter struct + Path string + func (rw *RespondWriter) AddProfile(relname string) error + func (rw *RespondWriter) AddTarget(relname string) error + func (rw *RespondWriter) Close() error + func (rw *RespondWriter) Initialize() error + func (rw *RespondWriter) WriteBase() error + type TargzPacker struct + func NewTargzPacker(w io.Writer) *TargzPacker + func (pk *TargzPacker) AddFile(src, nameInArchive string) error + func (pk *TargzPacker) AddFileEx(src, nameInArchive string, exerights bool) error + func (pk *TargzPacker) AddTargetLink(nameInArchive, linkName string) error + func (pk *TargzPacker) Close() error + type ZipPacker struct + FileMethod uint16 + func NewZipPacker(w io.Writer) *ZipPacker + func NewZipPackerEx(w io.Writer, method uint16) *ZipPacker + func (zp *ZipPacker) AddFile(src, nameInArchive string) error + func (zp *ZipPacker) AddFileEx(src, nameInArchive string, exerights bool) error + func (zp *ZipPacker) AddTargetLink(nameInArchive, linkName string) error + func (zp *ZipPacker) Close() error + func (zp *ZipPacker) SetComment(comment string) error