package
Version:
v0.1.0-alpha.1
Opens a new window with list of versions in this module.
Published: Aug 18, 2023
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package bounded implements generic bounded types for validation.
type Type[T any] struct {
}
Type is a bounded type. If err == nil, then T
is valid.
Bind returns a new instance of the bounded type that
has been validated by f.
type Validator[T any] func(t T) Type[T]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.