Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fa7ec0611c
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.216 kb
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()
}
Jump to Line
Something went wrong with that request. Please try again.