Hacker News new | ask | show | jobs
by 0942v8653 3738 days ago
Why require the string "EOF" at the end? Wh not wait for the actual EOF? Does it do multiple messages from the same pipe?

Edit: no, it doesn't. If you want to change this, you can use https://golang.org/pkg/io/ioutil/#ReadAll instead of bufio scanners.

2 comments

I submitted a pull request to fix that issue, plus a couple of others over at https://github.com/enzanki-ars/catslack.
Thanks for the tip!