Expense Data - file format

Creating a simple budget for your family using plain text for easy version control. This project defines the file format, expense data (EDA) and a tool to process it with.

Source code: github.com/gregoryv/eda

Quick start

$ go install github.com/gregoryv/eda/cmd/budget@latest
$ budget example.eda
 3 200 000 loans left
---------- --------------------
     4 791 car1
     2 125 car2
       666 daughter
    21 499 house
       166 life
    24 165 loan
     2 383 man
     1 500 mobile
       566 son
     2 383 wife
---------- --------------------
    44 896 sum
         2 people
---------- --------------------
    22 448 each

File format

	# Comments start with a '#' and empty lines are ignored

	# Special comments
	#
	# expense   signals following lines are expenses (default)
	# loan      signals following lines are loan entries
	#
	# expense
	# amount/(y|m) tags
	1000/m electricity
	100/m mobile
	40/m github
	...

	# loan
	# left interest installment tags
	686453     3.34        599  loan house
	 68800     5.39        700  loan car
	...

Example

# vehicles
2000/m man car1
2000/m wife car2

# digital
300/m man mobile
300/m wife mobile
500/m daughter mobile
400/m son mobile
400/m internet

# home and utilities
30000/y electricity
4000/y water
5000/y garbage
6000/m food
5000/m saving

# insurrance
1000/y wife life
1000/y man life
2000/y son daughter
1500/y car1
1500/y car2

# loan
2000000 5.0 5000 house loan
1000000 5.0 4000 house loan
 200000 4.0 2000 car1 loan