validator

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultValidator

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

DefaultValidator struct

func NewDefaultValidator

func NewDefaultValidator(
	mode *goflagsmode.Flag,
) *DefaultValidator

NewDefaultValidator creates a new default mapper validator

func (*DefaultValidator) ValidateNilFields

func (d *DefaultValidator) ValidateNilFields(
	validations govalidatormappervalidations.Validations,
	data interface{},
	mapper *govalidatormapper.Mapper,
) (err error)

ValidateNilFields validates if the fields are not nil

type Validator

type Validator interface {
	ValidateNilFields(
		validations govalidatormappervalidations.Validations,
		data interface{},
		mapper *govalidatormapper.Mapper,
	) (err error)
}

Validator interface

Jump to

Keyboard shortcuts

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