If md5 is enough at the end, use an io.T eeReader. If not, you need to buffer 
it, with bytes.Buffer. That can be reused with sync.Pool (don't forget the 
Reset).

For mime, the first 1024 bytes is enough. Read that into a [1024]byte and 
create a Reader with io.MultiReader.

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