Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(origin string, able CompressAble) string
func UnCompress ¶
func UnCompress(origin string, able CompressAble) string
Types ¶
type CompressAble ¶
type CompressAble interface { Compress() (io.WriteCloser, *bytes.Buffer) UnCompress(content []byte) io.Reader }
func NewGzipImpl ¶
func NewGzipImpl() CompressAble
func NewSnappyImpl ¶
func NewSnappyImpl() CompressAble
func NewZLibImpl ¶
func NewZLibImpl() CompressAble
func NewZstdImpl ¶
func NewZstdImpl() CompressAble
Click to show internal directories.
Click to hide internal directories.