rules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule interface {
	Match(ledger.Transaction) bool
	Apply(*ledger.Transaction)
}

func NewCSVRule

func NewCSVRule(account1, account2, comment string, conditions ...string) (Rule, error)

type Rules

type Rules []Rule

func NewCSVRulesFromReader

func NewCSVRulesFromReader(reader io.Reader) (Rules, error)

func (Rules) Apply

func (r Rules) Apply(txn *ledger.Transaction)

func (Rules) String

func (r Rules) String() string

Jump to

Keyboard shortcuts

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