What problem does it solve?
Generate Go validator implementations following modular architecture conventions (interface-first design, Fx DI, stateless validation). Use when creating validation logic in internal/modules/<module>/validator/ - password validation, email validation, input sanitization, business rule validation, or any domain validation that encapsulates validation rules and returns typed errors.
Core Features & Use Cases
- Two-file pattern: Port interface at internal/modules/<module>/ports/<validator_name>_validator.go and implementation at internal/modules/<module>/validator/<validator_name>_validator.go.
- Fx wiring and dependency management: ready for DI and modular wiring.
- Typed errors: integrates with module errs for domain-specific error handling.
- Use Case: quickly scaffold validation layers for new domain modules.
Quick Start
Create a new validator for a module by generating the port interface and the validator implementation following the two-file pattern.