validator

package
v0.0.0-...-ce5851c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunValidators

func RunValidators(validators ...Validator) error

Types

type StructValidator

type StructValidator struct {
	Struct interface{}
}

StructValidator support validator from github.com/go-playground/validator

func (*StructValidator) Check

func (v *StructValidator) Check() (string, bool)

type Validator

type Validator interface {
	Check() (string, bool)
}

Jump to

Keyboard shortcuts

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