go-usecase
Go UseCase
Generate use case implementation for Go modular architecture.
When to Use
- Create business operations with Execute pattern
- CRUD use cases for any module
- Operations requiring input validation and error handling
- Any domain logic orchestrating ports
File Pattern
One file per operation: internal/modules/<module>/usecase/<noun>_<action>_usecase.go
Examples: user_create_usecase.go, product_update_usecase.go, order_cancel_usecase.go
Naming Convention
More from cristiano-pacheco/ai-tools
go-gorm-model
Generate GORM persistence models. Use when creating database models using GORM.
78go-chi-handler
Generate Chi HTTP handlers, use case orchestration, Use for REST endpoint handlers or web http handlers.
26go-enum
Generate type-safe enums with validation. Use when creating enums, defining constants, or adding enum types.
20go-cache
Generate Redis-backed Go cache. Invoke whenever user mentions cache or Redis.
20go-integration-tests
Generate Go integration tests with real database/infrastructure via itestkit containers. Use when testing use cases against real databases, verifying end-to-end flows, or adding integration test coverage.
20go-service
Generate services. Use for reusable single-responsibility business services or domain services.
18