#clean arsitektur
/project
│── /cmd # Entry point aplikasi
│── /internal # Core business logic
│ │── /domain # Entity & interface (abstraction)
│ │── /usecase # Business logic (application layer)
│ │── /repository # Database interaction
│── /infrastructure # Framework, database, API
│── /delivery # HTTP handler (controller), gRPC, CLI, dsb.
│── main.go
#Microservices dengan Event-Driven Architecture
/user-service
│── /api # API handler
│── /service # Business logic
│── /repository # Data access layer
│── /events # Event producer & consumer
│── main.go
/order-service
│── /api
│── /service
│── /repository
│── /events
│── main.go