Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetErrSeparator ¶
func SetErrSeparator(s string)
SetErrSeparator 设置错误分割符,当showAllErrors为true时,将以此符号分割
Types ¶
type ErrorTranslator ¶
type ErrorTranslator interface {
RegisterTranslations(v *validator.Validate) (ut.Translator, error)
}
ErrorTranslator 错误解释器,用于多语言环境的错误处理
Click to show internal directories.
Click to hide internal directories.