Update to gobook@1488e6aab9641aecf93189bb7f4283d9086fc01c

This commit is contained in:
Alan Donovan 2015-11-22 16:44:47 -05:00
parent 8908af67d0
commit 84af1e6bd3

View File

@ -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