原文:
Package bzip2 implements bzip2 decompression.
Index ▾Package filesbit_reader.go bzip2.go huffman.go move_to_front.go
func NewReaderfunc NewReader(r io.Reader) io.Reader
NewReader returns an io.Reader which decompresses bzip2 data from r. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from r.
type StructuralErrorA StructuralError is returned when the bzip2 data is found to be syntactically invalid.
type StructuralError string
func (StructuralError) Errorfunc (s StructuralError) Error() string
翻譯:
import "compress/bzip2"
bzip2包實現bzip2的解壓縮。
Index返回首頁type StructuralError string
當bzip2數據的語法不合法時,會返回本類型錯誤。
func (StructuralError) Errorfunc (s StructuralError) Error() string
func NewReaderfunc NewReader(r io.Reader) io.Reader
NewReader返回一個從r讀取bzip2壓縮數據並解壓縮後返回給調用者的io.Reader。
功能說明:.bz2文件的壓縮程序。參考資料:
Go語言中文文檔
http://www.golang.ltd/
Go語言官方文檔
https://golang.google.cn/
Golang語言情懷
ID:wwwGolangLtd
www.Golang.Ltd
遊戲伺服器架構丨分布式技術丨大數據丨Go語言學習