reporter

package
v0.0.0-...-78f2c7e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateReport

type DuplicateReport struct {
	Hash  string   `json:"hash"`
	Files []string `json:"files"`
	Size  int64    `json:"size"`
	Count int      `json:"count"`
}

DuplicateReport represents a report of duplicate files

type Options

type Options struct {
	Format  string // text, json, csv
	Output  string // file path or empty for stdout
	Verbose bool
}

Options contains configuration for the reporter

type Reporter

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

Reporter generates reports of duplicate files

func New

func New(opts Options) *Reporter

New creates a new Reporter

func (*Reporter) Generate

func (r *Reporter) Generate(duplicates map[string][]string) error

Generate generates a report of duplicate files

Jump to

Keyboard shortcuts

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