Documentation ¶ Index ¶ Variables type Helper func New(algo arccmp.Algorithm, ope Operation, src any) (h Helper, err error) func NewReader(algo arccmp.Algorithm, ope Operation, src io.Reader) (Helper, error) func NewWriter(algo arccmp.Algorithm, ope Operation, dst io.Writer) (Helper, error) type Operation Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidSource = errors.New("invalid source") ErrClosedResource = errors.New("closed resource") ErrInvalidOperation = errors.New("invalid operation") ) Functions ¶ This section is empty. Types ¶ type Helper ¶ type Helper interface { io.ReadWriteCloser } func New ¶ func New(algo arccmp.Algorithm, ope Operation, src any) (h Helper, err error) func NewReader ¶ func NewReader(algo arccmp.Algorithm, ope Operation, src io.Reader) (Helper, error) func NewWriter ¶ func NewWriter(algo arccmp.Algorithm, ope Operation, dst io.Writer) (Helper, error) type Operation ¶ type Operation uint8 const ( Compress Operation = iota Decompress ) Source Files ¶ View all Source files compressor.go decompressor.go interface.go types.go Click to show internal directories. Click to hide internal directories.