Documentation ¶
Index ¶
- func NewCompressor(w io.Writer, compressionType string) (io.WriteCloser, error)
- func NewCompressorBySuffix(w io.Writer, compressionSuffix string) (io.WriteCloser, error)
- func NewDecompressor(r io.Reader, compressionType string) (io.ReadCloser, error)
- func NewDecompressorBySuffix(r io.Reader, compressionSuffix string) (io.ReadCloser, error)
- func TypeToSuffix(compressionType string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompressor ¶
NewCompressor returns an io.WriteCloser that compresses its input. The compression type needs to be specified upfront. Only cheap compression is supported, as this is assembled on the fly, and acts as a poorman's content-encoding. It's the callers responsibility to close the reader when done.
func NewCompressorBySuffix ¶
NewCompressorBySuffix returns an io.WriteCloser that compresses its input.
func NewDecompressor ¶
NewDecompressor decompresses contents from an io.Reader The compression type needs to be specified upfront. It's the callers responsibility to close the reader when done.
func NewDecompressorBySuffix ¶
func TypeToSuffix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.