I think what you need is io.ReadFull.
Andy
--
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 http
I'm reading the Body of an HTTP request. In my handler I want to chunk the
response body up into fixed size blocks. I doing this using the following
code:
b := make([]byte, config.Blocksize)
for {
cnt, err := r.Body.Read(b)
if err == io.EOF {
break
}
if err != nil {
log.Error("Re