Hi!
This is cool.
But how to send EOF from Ask()? Ctrl-D sends empty line, not an io.EOF error.
I have this behavior in bufio.Reader.ReadString('\n') that EOF is passed properly - thus can be handled. I'd like to have it here too.
Imagine I'm processing hidden input in a loop, would be nice to be able to end this normally, not only via Ctrl-C.
Hi!
This is cool.
But how to send EOF from Ask()? Ctrl-D sends empty line, not an
io.EOFerror.I have this behavior in
bufio.Reader.ReadString('\n')that EOF is passed properly - thus can be handled. I'd like to have it here too.Imagine I'm processing hidden input in a loop, would be nice to be able to end this normally, not only via Ctrl-C.