Discover Packages
github.com/cespare/diff
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 1, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
diff
diff is a Go package for comparing files and io.Reader
s.
Expand ▾
Collapse ▴
Documentation
¶
Package diff checks whether files and io.Readers have identical contents.
Files compares the contents of file1 and file2.
Files first compares file length before looking at the contents.
Readers compares the contents of two io.Readers.
The return value of different is true if and only if there are no errors
in reading r1 and r2 (io.EOF excluded) and r1 and r2 are
byte-for-byte identical.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.