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

# 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.

# 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

# Functions

NewFlate creates a flate compressor.
NewGzip creates a gzip compressor.
NewLZW creates a lzw compressor.
NewZlib creates a zlib compressor.

# Variables

Version is the current version of the package.