On Sat, Oct 7, 2017 at 8:48 PM Johan terryn <johan.ter...@gmail.com> wrote:

> If I declare "in" as var of type os.File before the call to
binary.read(...)
> I get a compile error stating that in is not a reader, without the
declaration it works fine...
> just odd unexpected behavior.

Why not just show the failing code?

Anyway, as it has been already discussed in this thread: os.File is _not_
an io.Reader, *os.File is. I don't know if it's the culprit however,
because the actual failing code is still being hidden from us for unknown
reasons.

-- 

-j

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to