fdup

package
v0.0.0-...-23f5167 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintResult

func PrintResult(w io.Writer, hashedFileMap HashedFileMap)

Types

type Fdup

type Fdup struct {
	// contains filtered or unexported fields
}

func NewFdup

func NewFdup(f fs.FS) *Fdup

creating a new instance of fdup to use to find duplicate files

func (*Fdup) Search

func (fd *Fdup) Search() (HashedFileMap, error)

the main method to search for files

type FileInfo

type FileInfo struct {
	Name     string
	FullPath string
	Size     int64
}

type HashedFileMap

type HashedFileMap map[uint32][]FileInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL