validation

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMany

func ValidateMany[T any](ctx context.Context, validator Validator, items []T) error

Types

type GoPlaygroundValidator

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

func NewGoPlaygroundValidator

func NewGoPlaygroundValidator() GoPlaygroundValidator

func (GoPlaygroundValidator) Validate

func (g GoPlaygroundValidator) Validate(ctx context.Context, v any) error

type Validator

type Validator interface {
	Validate(ctx context.Context, v any) error
}

Jump to

Keyboard shortcuts

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