Documentation ¶
Index ¶
Constants ¶
View Source
const ( OutputModeCsvFile = "csv" OutputModeTextFile = "text" OutputModeStdOut = "print" )
Different output modes
Variables ¶
View Source
var OutputModes = map[string]string{ OutputModeTextFile: "creates a text file in current directory with basic information", OutputModeCsvFile: "creates a csv file in current directory with detailed information", OutputModeStdOut: "just prints the report without creating any file", }
OutputModes and their brief descriptions
Functions ¶
This section is empty.
Types ¶
type DigestToFiles ¶
type DigestToFiles struct {
// contains filtered or unexported fields
}
DigestToFiles is a multi-map with FileDigest keys and string values. Writes to this is goroutine-safe.
func NewDigestToFiles ¶
func NewDigestToFiles(size int) (m *DigestToFiles)
NewDigestToFiles creates new DigestToFiles
func (*DigestToFiles) Map ¶
func (m *DigestToFiles) Map() map[FileDigest][]string
Map returns internal map to iterate over
func (*DigestToFiles) Remove ¶
func (m *DigestToFiles) Remove(fd FileDigest)
Remove removes entry in the map
func (*DigestToFiles) Set ¶
func (m *DigestToFiles) Set(key FileDigest, value string)
Set sets a value for the key
type FileDigest ¶
FileDigest contains properties of a file that makes the file unique to a very high degree of confidence
func (FileDigest) String ¶
func (f FileDigest) String() string
type FileExtAndSize ¶
FileExtAndSize is a struct of file extension and file size
func (FileExtAndSize) String ¶
func (f FileExtAndSize) String() string
type FileExtAndSizeToFiles ¶
type FileExtAndSizeToFiles map[FileExtAndSize][]string
FileExtAndSizeToFiles is a multi-map of FileExtAndSize key and string values
type FilePathToMeta ¶
FilePathToMeta is a map of file path to its FileMeta
Click to show internal directories.
Click to hide internal directories.