How patni1992/cli-todo-app-in-go works
This is a small Go command-line todo app. Its main workflow loads saved todos, parses a command-line action, applies that action to the todo list (or prints it), then saves the list. The code also validates indexes for edit, delete, and toggle operations, and renders listings with a table library. The excerpts show the local JSON persistence and command dispatch; no separate external initiating actor is modeled.
Main entry points: main.go Application entry · storage.go JSON storage · command.go Command flags · todo.go Todo operations
Components 6
CLI runtime
- Application entry
main.go - Command flags
command.go
Todo domain
- Todo operations
todo.go
Persistence
- JSON storage
storage.go - todos.json
Other components
- Table library
Connections 6
- Application entry → JSON storage: loads
main.go - Application entry → Command flags: executes
main.go - Application entry → JSON storage: saves
main.go - Command flags → Todo operations: dispatches
command.go - Todo operations → Table library: renders with
todo.go - JSON storage → todos.json: reads/writes
storage.go