validator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function[T any] func(T) error

func (Function[T]) Validate

func (f Function[T]) Validate(input T) error

type Validator

type Validator[T any] interface {
	Validate(T) error
}

func New

func New[T any](f func(T) error) Validator[T]

Jump to

Keyboard shortcuts

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