Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainBody ¶
func DrainBody(b io.ReadCloser) (r1, r2 io.ReadCloser, err error)
drainBody reads all of b to memory and then returns two equivalent ReadClosers yielding the same bytes. It returns an error if the initial slurp of all bytes fails. It does not attempt to make the returned ReadClosers have identical error-matching behavior.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.