fin

command module
v2.0.0-...-909b5f0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 7 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.

Jump to

Keyboard shortcuts

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