Documentation ¶
Overview ¶
Package sdvalidator github.com/go-playground/validator 扩展工具
Index ¶
- func Default() *validator.Validate
- func FieldsErrors(err error) []validator.FieldError
- func SetDefault(v *validator.Validate)
- func Struct(s any) error
- func StructCtx(ctx context.Context, s any) error
- func StructPartial(s any, fields []string) error
- func StructPartialCtx(ctx context.Context, s any, fields []string) error
- func Var(v any, tag string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsErrors ¶
func FieldsErrors(err error) []validator.FieldError
func SetDefault ¶
func SetDefault(v *validator.Validate)
func StructPartial ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.