Documentation ¶
Overview ¶
Package uncompressed provides a reader to uncompress the compressed data.
Read the first magic number of the data and select the appropriate uncompressed reader.
Example ¶
package main import ( "fmt" "io/ioutil" "os" "path/filepath" "github.com/noborus/uncompressed" ) func main() { file, err := os.Open(filepath.Join("testdata", "test.txt.zstd")) if err != nil { panic(err) } defer file.Close() r := uncompressed.NewReader(file) fmt.Println(ioutil.ReadAll(r)) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.