Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.
/ uncompressed Public archive

Uncompressed provides an uncompressed reader from various compressed readers

License

Notifications You must be signed in to change notification settings

noborus/uncompressed

Repository files navigation

uncompressed Reader

Go

No need to import. Reference implementation.

Uncompressed provides uncompressed reader from various compressed readers.

Uncompressed reader identifies the file from the magic number in the first few bytes.

Supported compression formats are gzip, bzip2, zstd, lz4, xz.

example

package main

import (
	"io"
	"os"

	"github.com/noborus/uncompressed"
)

func main() {
	file, err := os.Open("test.txt.zstd")
	if err != nil {
		panic(err)
	}
	defer file.Close()
	r := uncompressed.NewReader(file)
	io.Copy(os.Stdout, r)
}

See _examples/zzcat for more details.

About

Uncompressed provides an uncompressed reader from various compressed readers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages