Categorygithub.com/go-zoox/compress
repositorypackage
1.0.1
Repository: https://github.com/go-zoox/compress.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

compress

Simply compressor, support zlib/gzip/flate/lzw.

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get github.com/go-zoox/compress

Getting Started

package main

import (
	"fmt"

	"github.com/go-zoox/compress"
)

func main() {
	gzip := compress.NewGzip()
	bytes := gzip.Compress([]byte("hello world"))
	bytes2, _ := gzip.Decompress(bytes)
	fmt.Println(string(bytes2))
}

Try in Go Playground.

Inspired By

License

GoZoox is released under the MIT License.