Documentation
¶
Overview ¶
Package hash provides ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDetector ¶
type FileDetector struct {
// contains filtered or unexported fields
}
FileDetector implements exact file duplicate detection.
func NewFileDetector ¶
func NewFileDetector(threshold int) *FileDetector
NewFileDetector creates a new file-level hash detector.
func (*FileDetector) FindDuplOver ¶
FindDuplOver finds exact file duplicates using XXH3 hashing.
type FileDuplicate ¶
FileDuplicate represents a group of files with identical content.
func FindFileDuplicates ¶
func FindFileDuplicates(files []string, threshold int) []FileDuplicate
FindFileDuplicates finds exact file duplicates by hashing file contents. Files are hashed one at a time via io.Copy through XXH3 — file content is never held in memory. Only (hash, filename, size) is retained per file.
Click to show internal directories.
Click to hide internal directories.