Think from the other side: Write should return the number of bytes successfully 
written bytes of the input slice, to allow the caller to retry from there.

If your writer writes the bytes in hex, that means it will effectively write 2n 
bytes, but must report back n!

Or a compressor may write less, etc.

-- 
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.

Reply via email to