Documentation ¶ Index ¶ Variables func New() *validator.Validate type Validatable type Validate Constants ¶ This section is empty. Variables ¶ View Source var Module = fx.Module( "validator", fx.Decorate(func(log *zap.Logger) *zap.Logger { return log.Named("validator") }), fx.Provide(New), ) Functions ¶ func New ¶ func New() *validator.Validate New creates a new validator instance with required struct validation enabled. WithRequiredStructEnabled ensures that struct fields marked as required are validated even when the struct itself is not explicitly validated. Types ¶ type Validatable ¶ type Validatable interface { Validate() error } type Validate ¶ type Validate = validator.Validate Source Files ¶ View all Source files interface.gomodule.govalidator.go Click to show internal directories. Click to hide internal directories.