Hacker News new | ask | show | jobs
by flaie 4361 days ago
If you use a `Decoder` instead you can check for the `io.EOF` error in that case.

http://play.golang.org/p/cbWe9se76d