package
0.0.0-20230706045331-b7aacc1f4a2f
Repository: https://github.com/axelarnetwork/utils.git
Documentation: pkg.go.dev
# Functions
And returns a new predicate function that would return true if all of the given predicate functions return true for the given value; false otherwise.
Compose composes two compatible functions.
Identity returns the given element.
Must returns the result if err is nil, panics otherwise.
MustNoErr panics if err is not nil.
MustOk returns the result if ok, panics otherwise.
MustTrue panics if not true, noop otherwise.
Not returns a new predicate function that would return true if the given predicate function returns false; false otherwise.
Or returns a new predicate function that would return true if any of the given predicate functions returns true for the given value; false otherwise.