httprs adds Seek to http.Response.Body by doing range requests. A
HttpReadSeeker implements io.ReadCloser and io.Seeker.
resp, err := http.Get(url)
rs := httprs.NewHttpReadSeeker(resp)
io.ReadFull(rs, buf) // reads the first bytes from the response body
rs.Seek(1024, 0) // moves the position, but does no range request
io.ReadFull(rs, buf) // does a range request and reads from the response
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 email@example.com.
For more options, visit https://groups.google.com/d/optout.