Author: Bill Zay
Type : Personal Project
Financial Management GoLang CLI is created for learning how to build a CLI Application on GoLang with some simple libraries :
flag: A standard Go Library is using for creating flag on GoLanggithub.com/alexeyco/simpletable: A library is using for present a table view of data
We store a sample data into budget.json
Use this command to download all packages of project :
go mod downloadTo build this project, run this command:
go build ./cmd/main.go-
--list: List a table of finance data./main --list
-
--add: Add your new item name -
--price: Input the price of the new item with type Float (10.2, 20.1, ..v..v. )./main --add="<name>" --price=<price>
-
--addBudget: Add your new budget to the Table./main --addBudget=<budget>
-
--delete: Choose which item of the table will be deleted./main --delete=<index>
-
--updateName": Type the name you want to update -
--index: Choose which item of table will be updated./main --updatePrice="<update name>" --index=<index>
-
--updatePrice: Input the price you want to update with the type is Float (10.0, 20.15, ..v..v) -
--index: Choose which item of table will be updated./main --updateName=<update price> --index=<index>