Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain defines an error chain
func New ¶
func New(opts ...ChainOption) *Chain
New creates a new error chain. All errors will be evaluated respectively according to their insertion order
type ChainOption ¶
type ChainOption func(*Chain)
ChainOption configures a validation chain at creation time.
func ReturnAll ¶
func ReturnAll() ChainOption
ReturnAll sets whether a chain should return all errors.
func ReturnFirst ¶
func ReturnFirst() ChainOption
ReturnFirst sets whether a chain should stop validation on first error.
Click to show internal directories.
Click to hide internal directories.