For example:

https://play.golang.org/p/ycoR-jU48J9

The only read error it ignores is io.EOF (which makes complete sense, when
you think about it), everything else get passed up.

On Tue, Feb 13, 2018 at 9:19 AM, Patrik Iselind <patrik....@gmail.com>
wrote:

> Hi,
>
> I have a hard time imagining when https://golang.org/pkg/io/
> ioutil/#ReadAll would produce err != nil. The documentation doesn't tell
> either. It would help when writing unittests for code that use
> ioutil.ReadAll().
>
> // Patrik
>
> --
> 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.
>

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