Summary
Reorganize the Go backend from a single main.go into a proper daemon layout.
Tasks
Acceptance criteria
- Daemon starts with the new structure
- No business logic left in
main.go beyond wiring and startup
- Package layout follows standard Go project conventions
Parent
Part of #1
Summary
Reorganize the Go backend from a single
main.gointo a proper daemon layout.Tasks
backend/cmd/calf/main.gobackend/internal/apifor HTTP handlers and routingbackend/internal/configfor configuration loadinggo run ./cmd/calf(or equivalent) working frombackend/DEVELOPMENT.mdif paths or commands changeAcceptance criteria
main.gobeyond wiring and startupParent
Part of #1