- IsTrue: Checks if the provided string represents a true value (e.g., "T", "1", "TRUE").
- Toggle: Toggles the given boolean value, returning its negation. (e.g.,
truebecomesfalseand vice versa). - AllTrue: Checks if all the values in a slice of booleans are
true. Returnsfalseif the slice is empty. - AnyTrue: Checks if at least one value in a slice of booleans is
true. Returnsfalseif the slice is empty. - NoneTrue: Checks if none of the values in a slice of booleans are
true. Returnstrueif the slice is empty. - CountTrue: Counts the number of
truevalues in a slice of booleans. Returns0for an empty slice. - CountFalse: Counts the number of
falsevalues in a slice of booleans. Returns0for an empty slice. - Equal: Checks if all the values in a variadic boolean argument are equal. Returns
trueif the slice contains only one or no elements. - And: Performs a logical AND operation on all the values in a slice of booleans. Returns
trueonly if all values aretrue. Returnsfalsefor an empty slice. - Or: Performs a logical OR operation on all the values in a slice of booleans. Returns
trueif at least one value istrue. Returnsfalsefor an empty slice.
For examples of each function, please checkout EXAMPLES.md