Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 207 Bytes
package mogrify
import (
"bytes"
"io"
)
func drain(reader io.Reader) []byte {
var buffer bytes.Buffer
_, err := buffer.ReadFrom(reader)
if err != nil {
return []byte{}
}
return buffer.Bytes()
}
Something went wrong with that request. Please try again.