template-monorepo/internal/library/validate/option.go

14 lines
349 B
Go
Raw Normal View History

2026-05-19 12:56:32 +00:00
package validate
import (
"github.com/go-playground/validator/v10"
)
// Option contains all the necessary functions for a custom validator.
type Option struct {
ValidatorName string
ValidatorFunc validator.Func
RegisterTranslationFunc validator.RegisterTranslationsFunc
TranslationFunc validator.TranslationFunc
}