package
0.32.1
Repository: https://github.com/adguardteam/golibs.git
Documentation: pkg.go.dev

# Functions

Append validates v and, if it returns an error, appends it to errs and returns the result.
AppendSlice validates values, wraps errors with the name and the index, appends them to errs, and returns the result.
Empty returns an error if v is not equal to its zero value.
EmptySlice returns an error if v is neither nil nor empty.
GreaterThan returns an error if a is less than or equal to b.
InRange returns an error of v is less than min or greater than max.
LessThan returns an error if a is greater than or equal to b.
NoGreaterThan returns an error if v is greater than max.
NoLessThan returns an error if v is less than min.
NotEmpty returns an error if v is its zero value.
NotEmptySlice returns an error if v is nil or empty.
NotNegative returns an error if v is less than the zero value of type T.
NotNil returns an error if v is nil.
NotNilInterface returns an error if v is nil.
Positive returns an error if v is less than or equal to the zero value of type T.
Slice validates values, wraps errors with the name and the index, and returns the result as a single joined error.

# Interfaces

Interface is the interface for configuration entities that can validate themselves.