mozlz4: github.com/frioux/mozlz4 Index | Examples | Files

package mozlz4

import "github.com/frioux/mozlz4"

Code:

file, err := os.Open(os.Args[1])
if err != nil {
    fmt.Fprintf(os.Stderr, "Couldn't open: %s\n", err)
    os.Exit(1)
}

r, err := mozlz4.NewReader(file)
_, err = io.Copy(os.Stdout, r)
if err != nil {
    fmt.Fprintf(os.Stderr, "Couldn't copy: %s\n", err)
    os.Exit(1)
}

Index

Examples

Package Files

mozlz4.go

Variables

var (
    ErrWrongHeader = errors.New("no mozLz4 header")
    ErrWrongSize   = errors.New("header size incorrect")
)

Errors

func NewReader Uses

func NewReader(r io.Reader) (io.Reader, error)

NewReader returns an io.Reader that decompresses the data from r.

Package mozlz4 imports 7 packages (graph). Updated 2018-09-10. Refresh now. Tools for package owners.