Skip to content

Usage

To utilize the Or operator, simply insert .Or(). between two conditions within your validator chain. Here’s a basic example:

v := Is(Bool(true).True().Or().False())

In this case, the validator passes because the boolean value true satisfies the first condition before the Or() operator.