fin

command module
v4.0.0-...-9e2d425 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 17 Imported by: 0

README

fin

Go Reference License

Calculates summaries for my personal expenditures.

Example nput looks like:

out: [ for _cur, _recs in _raw {
	currency: _cur
	holding:  _recs.holdings
	income:   _recs.income
	expense:  _recs.expenses
	months: [ for _rec in _recs.records {
		year:  _rec[0]
		month: _rec[1]
		transactions: [ for _tr in _rec[2] {
			source:      _tr[0]
			destination: _tr[1]
			amount:      _tr[2]
			if len(_tr) > 3 {
				note: _tr[3]
			}
		}]
	}]
}]

let FOO = "foo_x"
let BAR = "bars"
let FIZ = "fizz"

_raw: eur: {
	holdings: [FOO]
	income: [FIZ]
	expenses: [BAR]

	records: [
		[2022, 6, [
		  [FIZ, FOO, 1234567, "income"],
		  [FOO, BAR, 200],
		  [FOO, BAR, 2000, "bars..."],
		]],
	]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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