Documentation
¶
Overview ¶
Package validator provide types for validate query after parsing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UnexpectedType is error that can func // func TypeIs[T any]() UnexpectedType = errors.New("Unexpected type") )
Functions ¶
This section is empty.
Types ¶
type ValidateFunc ¶
type ValidateFunc func(value interface{}) error
ValidateFunc desctibe a func that take parsed value and validate it
func MergeValidationsFunc ¶
func MergeValidationsFunc(funcs ...ValidateFunc) ValidateFunc
type Validations ¶
type Validations map[string]ValidateFunc
Validations describe map of query valiues with their validations
Click to show internal directories.
Click to hide internal directories.