I recently set out to build a tool that solves the problem of manual financial tracking—without the bloat of traditional apps. My result is Safi-Budget, a Go-based CLI tool.
Technical Takeaways:
Data Flow: I implemented a JSON-based persistence layer, ensuring that every transaction is serialized and saved instantly.
Handling Windows I/O: By replacing fmt.Scanln with bufio.Scanner, I solved common terminal-freeze issues, making the app much more stable.
Testing: I added a main_test.go suite to validate disk I/O operations and ensure data integrity.
This project was a great way to refine my understanding of Go structs and file system interaction.
Check it out here: https://github.com/shakipkorir/safi-budget
I’d love to hear your feedback on the implementation!
Top comments (0)