Documentation ¶
Index ¶
- func StripNewlines(l *Line) error
- type Line
- type Mutator
- func CheckWithdrawal(i int) Mutator
- func DeparenNegatives(i int) Mutator
- func EnsureDollars(i int) Mutator
- func MoveAndNegateIfPresent(from int, to int) Mutator
- func Negate(i int) Mutator
- func RemoveText(i int, rem string) Mutator
- func ReplaceHeader(header []string) Mutator
- func StripCommas(i int) Mutator
- func StripSuffix(i int, suffix string) Mutator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripNewlines ¶
StripNewlines removes any newlines in a record
Types ¶
type Mutator ¶
Mutator is a function that knows how to mutate a Line
func CheckWithdrawal ¶
CheckWithdrawal converts an entry like 'Check Withdrawal: #999999' to '(#999999)'
func DeparenNegatives ¶
func EnsureDollars ¶
func MoveAndNegateIfPresent ¶
func RemoveText ¶
RemoveText removes the substring rem, if it is present, up to one time.
func ReplaceHeader ¶
ReplaceHeader changes the first line
func StripCommas ¶
func StripSuffix ¶
Click to show internal directories.
Click to hide internal directories.