FAQ
Hmmm... it seems I used a new method on bufio.Reader that was introduced in
go1.5. Are you able to use go1.5 instead?

Discard was important to getting high-performance on the decoder side.

JT
On Wed, Dec 9, 2015 at 11:58 PM, bitstorm wrote:

I wanted to try this code and compare speedwise to my own implementation
of similar compression algorithms (https://github.com/flanglet/kanzi) but
I cannot compile it:

bash build.bash
/tmp/tmp.OEZy2bZNpS/src/github.com/dsnet/compress/flate/bit_reader.go:68:
br.bufRd.Discard undefined (type *bufio.Reader has no field or method
Discard)

[...]/go/src/github.com/dsnet/compress/api.go:52: cannot use
(*bufio.Reader)(nil) (type *bufio.Reader) as type BufferedReader in
assignment:
*bufio.Reader does not implement BufferedReader (missing Discard method)


--
Joe Tsai
http://www.Digital-Static.net/

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 8, '15 at 7:55a
activeDec 13, '15 at 12:53p
posts11
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase