Hi, I cannot find anything in the documentation about how bufio.Scanner behaves when the underlying io.Reader does partial reads.
I'm using a Scanner to parse a stream of tokens that arrives over a TCP socket. The stream is a sequence of lines terminated by \n. Do I have a guarantee that the final \n will be passed to my custom scan function and the result passed to the Scan function even if the connection hangs just after the \n? Do similar properties hold for bufio.Reader (i.e., that the final octet will be passed to the client even if the connection hangs)? Shall I submit an issue? Thanks, -- Juliusz -- 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.