statement

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package statement reads local bank exports. Parsing is bounded and atomic; malformed rows never become zero-value transactions.

Index

Constants

View Source
const MaxBytes = 8 << 20
View Source
const MaxTransactions = 10000

Variables

This section is empty.

Functions

func CSVHeaders added in v0.2.0

func CSVHeaders(input io.Reader, delimiter string) ([]string, error)

Types

type Options

type Options struct {
	Columns   map[string]string
	Delimiter string
	Format    string
	Account   string
	// Decimal is "." or ","; grouping separators are never guessed.
	Decimal    string
	DateFormat string
}

type Statement

type Statement struct {
	Snapshot    provider.Snapshot
	Fingerprint string
	FileHash    string
	From        string
	Through     string
	StableIDs   bool
}

func Parse

func Parse(r io.Reader, opts Options) (Statement, error)

Jump to

Keyboard shortcuts

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