equalfile.go
func postEOFCheck(c *Cmp, r io.Reader, buf []byte) bool {
	tmpLR, isLR := r.(*io.LimitedReader)
	if isLR {
		// If the limit wasn't reached, then we don't need to check for
		// more data after the EOF
		if tmpLR.N > 0 {
			return true
		}

		// Use the internal Reader for checking for more data
		r = tmpLR.R
	} else {
		c.debugf("compareReader: A type assertion of LimitedReader unexpectedly failed\n")
	}

	// Attempt to read more bytes from the original readers, to determine
	// if we should return an error for exceeding the MaxSize read limit.
	n, _ := readPartial(c, r, buf, 0, len(buf))
	return n == 0
}
func postEOFCheck(c *Cmp, r io.Reader, buf []byte) bool {
	tmpLR, isLR := r.(*io.LimitedReader)
	if isLR {
		// If the limit wasn't reached, then we don't need to check for
		// more data after the EOF
		if tmpLR.N > 0 {
			return true
		}

		// Use the internal Reader for checking for more data
		r = tmpLR.R
	} else {
		c.debugf("compareReader: A type assertion of LimitedReader unexpectedly failed\n")
	}

	// Attempt to read more bytes from the original readers, to determine
	// if we should return an error for exceeding the MaxSize read limit.
	n, _ := readPartial(c, r, buf, 0, len(buf))
	return n == 0
}
// postEOFCheck returns false if there is more data in a LimitedReader after
// hitting EOF