Update to gobook@1488e6aab9641aecf93189bb7f4283d9086fc01c
This commit is contained in:
parent
8908af67d0
commit
84af1e6bd3
@ -34,6 +34,8 @@ func NewWriter(out io.Writer) io.WriteCloser {
|
||||
verbosity = 0
|
||||
workFactor = 30
|
||||
)
|
||||
// NOTE: This code may not work in future Go releases.
|
||||
// See http://www.gopl.io/errata.html for explanation.
|
||||
w := &writer{w: out, stream: new(C.bz_stream)}
|
||||
C.BZ2_bzCompressInit(w.stream, blockSize, verbosity, workFactor)
|
||||
return w
|
||||
|
Loading…
Reference in New Issue
Block a user