validator_playground

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAlphanumUnderscore

func ValidateAlphanumUnderscore(fl playground.FieldLevel) bool

func ValidateId

func ValidateId(fl playground.FieldLevel) bool

func ValidatePhone

func ValidatePhone(fl playground.FieldLevel) bool

Types

type PlaygroundValdator

type PlaygroundValdator struct {
	// contains filtered or unexported fields
}

func New

func New() *PlaygroundValdator

func (*PlaygroundValdator) Validate

func (v *PlaygroundValdator) Validate(s interface{}) error

func (*PlaygroundValdator) ValidatePartial

func (v *PlaygroundValdator) ValidatePartial(s interface{}, fields ...string) *validator.ValidationError

func (*PlaygroundValdator) ValidateValue

func (v *PlaygroundValdator) ValidateValue(value interface{}, rules string) error

Jump to

Keyboard shortcuts

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