Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFiles ¶
CompareFiles returns the diff between files a, b.
func WalkAndCompare ¶
func WalkAndCompare(dir, mask string, filename string, cmp func(*FileInfo, *FileInfo) bool) ([]byte, error)
WalkAndCompare walks dir, looking for files matching the supplied regexp mask, successively comparing each against filename. The first having a diff (compared by most recent first) will be returned.
Useful for comparing multiple files to find the most recent difference from a set of files matching mask that likely have the same content.
Types ¶
type FileInfo ¶
FileInfo contains file information.
func FindFilesWithMask ¶
FindFilesWithMask walks dir finding all files with the regexp mask, removing any exclude'd files.
Click to show internal directories.
Click to hide internal directories.