equalfile.go
func (c *Cmp) CompareReader(r1, r2 io.Reader) (bool, error) {

	c.resetDebugging()

	equal, err := c.compareReader(r1, r2, c.Opt.MaxSize)

	c.printDebugCompareReader()

	return equal, err
}
func (c *Cmp) CompareReader(r1, r2 io.Reader) (bool, error) {

	c.resetDebugging()

	equal, err := c.compareReader(r1, r2, c.Opt.MaxSize)

	c.printDebugCompareReader()

	return equal, err
}
// CompareReader verifies that two readers provide same content.
//
// Reading more than MaxSize will return an error (along with the comparison
// value up to MaxSize bytes), unless one or both Readers are LimitedReaders,
// in which case MaxSize is ignored.