Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context interface {
GetRegistry() translation.Registry
GetPreferredLocale() string
FieldNameGetter() fieldname.Getter
IsStopAfterFirstError() bool
}
func New ¶
func New( registry translation.Registry, preferredLocale string, opts ...ContextOption, ) Context
New ...
type ContextOption ¶
type ContextOption func(o *validateContextOptions)
func WithFieldNameGetter ¶
func WithFieldNameGetter(f fieldname.Getter) ContextOption
func WithNotStopAfterFirstError ¶
func WithNotStopAfterFirstError() ContextOption
func WithStopAfterFirstError ¶
func WithStopAfterFirstError() ContextOption
Click to show internal directories.
Click to hide internal directories.