loanMgr is a command-line tool written in Go for managing loans, tracking payments, and calculating the time remaining until loans are fully paid off. It offers a simple interface to add new loans, track payments, view loan history, and perform calculations based on interest rates and payments.
- Add, track, and manage multiple loans.
- Log payments and calculate remaining balance.
- View loan payment history in a human-readable format.
- Calculate loan duration based on monthly payments and interest rate.
- Automatic saving and retrieval of loan data in JSON files.
- Deletion of completed loans with archiving to a separate directory.
- Handles loans with zero interest rates.
- User-friendly interface to interact with loans and payments.
To install and run loanMgr locally:
git clone https://github.com/zapisanchez/loanMgr.git
cd loanMgr/cmd
go build -o loanMgr
go install github.com/zapisanchez/loanMgr@latest
./loanMgr
Once launched, you will see options to:
- Show existing loans.
- Create a new loan.
- Add a payment to a loan.
- View the payment history of a loan.
- Exit.
This project is licensed under the MIT License - see the LICENSE file for details.