Documentation ¶
Index ¶
- type FlateCompressor
- func (c *FlateCompressor) CompressString(v string) (result []byte, err error)
- func (c *FlateCompressor) DecompressToString(compressedContent []byte) (string, error)
- func (c *FlateCompressor) MustCompressString(v string) []byte
- func (c *FlateCompressor) MustDecompressToString(compressedContent []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlateCompressor ¶
type FlateCompressor struct { // The level of compression Level int }
compressor of falte algorithm
func NewDefaultFlateCompressor ¶
func NewDefaultFlateCompressor() *FlateCompressor
func (*FlateCompressor) CompressString ¶
func (c *FlateCompressor) CompressString(v string) (result []byte, err error)
func (*FlateCompressor) DecompressToString ¶
func (c *FlateCompressor) DecompressToString(compressedContent []byte) (string, error)
func (*FlateCompressor) MustCompressString ¶
func (c *FlateCompressor) MustCompressString(v string) []byte
func (*FlateCompressor) MustDecompressToString ¶
func (c *FlateCompressor) MustDecompressToString(compressedContent []byte) string
Click to show internal directories.
Click to hide internal directories.