Documentation ¶
Overview ¶
Package zip provides a mockable wrapper for archive/zip.
Index ¶
- type Impl
- func (*Impl) FileInfoHeader(fi fs.FileInfo) (*zip.FileHeader, error)
- func (*Impl) NewReader(r io.ReaderAt, size int64) (*zip.Reader, error)
- func (*Impl) NewWriter(w io.Writer) *zip.Writer
- func (*Impl) OpenReader(name string) (*zip.ReadCloser, error)
- func (*Impl) RegisterCompressor(method uint16, comp zip.Compressor)
- func (*Impl) RegisterDecompressor(method uint16, dcomp zip.Decompressor)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) FileInfoHeader ¶
func (*Impl) OpenReader ¶
func (*Impl) OpenReader(name string) (*zip.ReadCloser, error)
func (*Impl) RegisterCompressor ¶
func (*Impl) RegisterCompressor(method uint16, comp zip.Compressor)
func (*Impl) RegisterDecompressor ¶
func (*Impl) RegisterDecompressor(method uint16, dcomp zip.Decompressor)
type Interface ¶
type Interface interface { FileInfoHeader(fi fs.FileInfo) (*zip.FileHeader, error) NewReader(r io.ReaderAt, size int64) (*zip.Reader, error) NewWriter(w io.Writer) *zip.Writer OpenReader(name string) (*zip.ReadCloser, error) RegisterCompressor(method uint16, comp zip.Compressor) RegisterDecompressor(method uint16, dcomp zip.Decompressor) }
Click to show internal directories.
Click to hide internal directories.