sdvalidator

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package sdvalidator github.com/go-playground/validator 扩展工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *validator.Validate

func FieldsErrors

func FieldsErrors(err error) []validator.FieldError

func SetDefault

func SetDefault(v *validator.Validate)

func Struct

func Struct(s any) error

func StructCtx

func StructCtx(ctx context.Context, s any) error

func StructPartial

func StructPartial(s any, fields []string) error

func StructPartialCtx

func StructPartialCtx(ctx context.Context, s any, fields []string) error

func Var

func Var(v any, tag string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL