You do not need to flush if you call close. Close will flush. There is some 
other bug in your code I believe. 

> On May 21, 2019, at 3:01 AM, Jan Mercl <0xj...@gmail.com> wrote:
> 
>> On Tue, May 21, 2019 at 9:44 AM <pierre.cu...@gmail.com> wrote:
>> 
>> Usually though, you do not need to buffer the input or output at all.
> 
> If I/O is performed in chunks comparable in size to what
> bufio.{Reader,Writer} uses then ok. When I/O is done in small chunks,
> then using bufio should improve performance.
> 
> The question left is what the "usual" scenario is.
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/CAA40n-WsWkLtnP19DUwHNSrjDNBncbVepqNxVj%3DUF6MFV8ARLA%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/F7164312-1DA3-4C87-B220-E950804DAB98%40ix.netcom.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to