with one click
services-and-interfaces
// Define and implement services that encapsulate business logic with proper constructor-based dependency injection.
// Define and implement services that encapsulate business logic with proper constructor-based dependency injection.
Write unit tests in Go following Red-Green-Refactor TDD principles.
Implement HTTP handlers that parse requests, invoke use cases, and format responses following REST conventions.
Build pluggable authentication features using the plugin system with initialization, migrations, routes, and service registration.
Implement repository interfaces for data persistence and abstraction over database operations using Bun ORM.
Orchestrate services and repositories through use cases to implement application-level workflows and business scenarios.
Wire dependencies using constructor-based dependency injection throughout services, repositories, and handlers.
| name | services-and-interfaces |
| description | Define and implement services that encapsulate business logic with proper constructor-based dependency injection. |
TodoService and todoService with NewTodoService constructor)context.Contextinterfaces.go under the services/ folder.Services handle business logic:
See examples/todo_service.go for: