compress

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2023 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL