mrplayvalidator

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatorAdapter

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

ValidatorAdapter - comment struct.

func New

func New() *ValidatorAdapter

New - создаёт объект ValidatorAdapter.

func (*ValidatorAdapter) Register

func (v *ValidatorAdapter) Register(tagName string, fn func(value string) bool) error

Register - comment method.

func (*ValidatorAdapter) Validate

func (v *ValidatorAdapter) Validate(ctx context.Context, structure any) error

Validate - comment method.

Jump to

Keyboard shortcuts

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