dup

package
v0.0.0-...-737f61f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder struct {
	// # days to use when looking for matches.  0 means only look for matches on exactly the same day
	Days int
	// contains filtered or unexported fields
}

Finder tracks postings and looks for potential duplicates, based on the amount and the date.

func NewFinder

func NewFinder(days int) *Finder

NewFinder creates a new Finder.

func (*Finder) Add

func (f *Finder) Add(t *ledgertools.Transaction)

Add adds t and its postings and tracks any existing postings that have the same amount and are within the configured number of days.

func (*Finder) WriteCheckStyle

func (f *Finder) WriteCheckStyle(w io.Writer) error

WriteCheckStyle writes checkstyle (xml) output for all duplicates found.

func (*Finder) WriteJavacStyle

func (f *Finder) WriteJavacStyle(w io.Writer) error

WriteJavacStyle writes javac-style output for all duplicates found.

Jump to

Keyboard shortcuts

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