Versions in this module Expand all Collapse all v0 v0.1.0 Dec 7, 2022 Changes in this version + const Deflate + const Store + var ErrAlgorithm = errors.New("zip: unsupported compression algorithm") + func RegisterCompressor(method uint16, comp Compressor) + func RegisterDecompressor(method uint16, dcomp Decompressor) + type Compressor func(w io.Writer) (io.WriteCloser, error) + type Decompressor func(r io.Reader) io.ReadCloser + type FileHeader struct + CRC32 uint32 + Comment string + CompressedSize uint32 + CompressedSize64 uint64 + CreatorVersion uint16 + ExternalAttrs uint32 + Extra []byte + Flags uint16 + Method uint16 + ModifiedDate uint16 + ModifiedTime uint16 + Name string + ReaderVersion uint16 + UncompressedSize uint32 + UncompressedSize64 uint64 + func FileInfoHeader(fi os.FileInfo) (*FileHeader, error) + func (h *FileHeader) FileInfo() os.FileInfo + func (h *FileHeader) ModTime() time.Time + func (h *FileHeader) Mode() (mode os.FileMode) + func (h *FileHeader) SetModTime(t time.Time) + func (h *FileHeader) SetMode(mode os.FileMode) + type Writer struct + func NewWriter(w io.Writer) *Writer + func (w *Writer) Close() error + func (w *Writer) Create(name string) (io.Writer, error) + func (w *Writer) CreateHeader(fh *FileHeader) (io.Writer, error) + func (w *Writer) Flush() error + func (w *Writer) RegisterCompressor(method uint16, comp Compressor) + func (w *Writer) SetOffset(n int64)