Skip to content

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

License

Notifications You must be signed in to change notification settings

go-zoox/compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages