Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainClose ¶
DrainClose will read all bytes of an io.Reader into a bytes.Buffer, to allow it to be used multiple times.
If the reader is a *bytes.Buffer, a new bytes.Buffer will be returned from its backing []byte slice.
It will also attempt to Close any provided reader, if it implements the io.Closer iface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.