directories

package
v0.0.0-...-8eadf76 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveComparisonReport

func SaveComparisonReport(comparisonResult Result, outputDir string, fromDate time.Time) (string, error)

Types

type Difference

type Difference struct {
	Filename  string
	LeftFile  string
	RightFile string
	Message   string
}

type Report

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

func NewReport

func NewReport(resultsDir string) (Report, error)

func (*Report) AddLine

func (rw *Report) AddLine(line string)

func (*Report) Close

func (rw *Report) Close() error

func (*Report) Save

func (rw *Report) Save() error

type Result

type Result struct {
	Equal              bool
	LeftDir            string
	RightDir           string
	LeftOnly           []string
	RightOnly          []string
	LeftDirFilesCount  int
	RightDirFilesCount int
	Diff               []Difference
}

func CompareDirectories

func CompareDirectories(leftDir, rightDir string, olderThan time.Time) (Result, error)

Jump to

Keyboard shortcuts

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