compress

package module
v0.0.0-...-b427bfa Latest Latest
Warning

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

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

README

eeianux/compress

LICENSE Language Go Report Card Coverage

a simple compress tool

Installation

go get github.com/eeianux/compress
go mod tidy

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