Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
func And[T constraints.Ordered](filters ...func(T) bool) func(T) bool
And aggregates multiple filters for use with iter.Filter (and iter.Exclude) to create a filter that returns true when all provided filters return true.
func GreaterThan ¶
func GreaterThan[T constraints.Ordered](t T) func(T) bool
GreaterThan creates a filter for use with iter.Filter that returns true when a value is greater than the provided threshold.
func IsZero ¶
func IsZero[T comparable](t T) bool
IsZero is a filter intended for use with iter.Filter that returns true when the provided value is equal to its zero value.
func LessThan ¶
func LessThan[T constraints.Ordered](t T) func(T) bool
LessThan creates a filter for use with iter.Filter that returns true when a value is less than the provided threshold.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.