Documentation ¶
Overview ¶
Example ¶
package main import ( "fmt" "io" "os" "github.com/frioux/mozlz4" ) func main() { 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) } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongHeader = errors.New("no mozLz4 header") ErrWrongSize = errors.New("header size incorrect") )
Errors
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.