Cleanup testio.

This commit is contained in:
Kyle Isom 2018-12-17 18:16:52 -08:00
parent 5ac05bd298
commit 070ffb9dff
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -194,6 +194,11 @@ func (buf *BufCloser) Bytes() []byte {
return buf.buf.Bytes()
}
// Len returns the length of the buffer.
func (buf *BufCloser) Len() int {
return buf.buf.Len()
}
// NewBufCloser creates and initializes a new BufCloser using buf as
// its initial contents. It is intended to prepare a BufCloser to read
// existing data. It can also be used to size the internal buffer for