Documentation
¶
Index ¶
- func And[T any](preds ...func(T) bool) func(T) bool
- func False[T any](T) bool
- func Flip[T, R any](f func(T, T) R) func(T, T) R
- func InContainer[T any](s Container[T]) func(T) bool
- func InMap[K comparable, V any](m map[K]V) func(K) bool
- func InSeq[T comparable](s iter.Seq[T]) func(T) bool
- func InSet[T comparable](s map[T]struct{}) func(T) bool
- func InSlice[T comparable](s []T) func(T) bool
- func Not[T any](f func(T) bool) func(T) bool
- func Or[T any](preds ...func(T) bool) func(T) bool
- func Ternary[T any](a T, b T, f func() bool) T
- func True[T any](T) bool
- type AccountIDProvider
- type AmountProvider
- type Comparable
- type Container
- type CreatedAtProvider
- type CustomerIDProvider
- type EventIDProvider
- type EventNameProvider
- type Identifiable
- type Integer
- type Named
- type Numeric
- type Ordered
- type PriorityProvider
- type ProductIDProvider
- type TransactionIDProvider
- type UpdatedAtProvider
- type ValueTimeProvider
- type ZeroCheckable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Flip ¶
func Flip[T, R any](f func(T, T) R) func(T, T) R
Flip returns a function that swaps the arguments of a binary function.
func InContainer ¶
InContainer returns a predicate that checks if a value is in container.
func InMap ¶
func InMap[K comparable, V any](m map[K]V) func(K) bool
InMap returns a predicate that checks if a key is in a map.
func InSeq ¶
func InSeq[T comparable](s iter.Seq[T]) func(T) bool
InSeq returns a predicate that checks if a value is in a sequence.
func InSet ¶
func InSet[T comparable](s map[T]struct{}) func(T) bool
InSet returns a predicate that checks if a value is in a set.
func InSlice ¶
func InSlice[T comparable](s []T) func(T) bool
InSlice returns a predicate that checks if a value is in a slice.
Types ¶
type AccountIDProvider ¶
type AccountIDProvider[T any] interface { GetAccountID() T }
AccountIDProvider defines types that implements the GetAccountID method.
type AmountProvider ¶
type AmountProvider[T any] interface { GetAmount() T }
AmountProvider defines types that implements the GetAmount method.
type Comparable ¶
Comparable defines types that implements the Compare method.
type CreatedAtProvider ¶
type CreatedAtProvider[T any] interface { GetCreatedAt() T }
CreatedAtProvider defines types that implements the GetCreatedAt method.
type CustomerIDProvider ¶
type CustomerIDProvider[T any] interface { GetCustomerID() T }
CustomerIDProvider defines types that implements the GetCustomerID method.
type EventIDProvider ¶
type EventIDProvider[T any] interface { GetEventID() T }
EventIDProvider defines types that implements the GetEventID method.
type EventNameProvider ¶
type EventNameProvider[T any] interface { GetEventName() T }
EventNameProvider defines types that implements the GetEventName method.
type Identifiable ¶
type Identifiable[T any] interface { GetID() T }
Identifiable defines types that implements the GetID method.
type Integer ¶
type Integer interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 }
Integer defines numeric types that are integers (signed or unsigned).
type Named ¶
type Named[T any] interface { GetName() T }
Named defines types that implements the GetName method.
type PriorityProvider ¶
type PriorityProvider[T any] interface { GetPriority() T }
PriorityProvider defines types that implements the GetPriority method.
type ProductIDProvider ¶
type ProductIDProvider[T any] interface { GetProductID() T }
ProductIDProvider defines types that implements the GetProductID method.
type TransactionIDProvider ¶
type TransactionIDProvider[T any] interface { GetTransactionID() T }
TransactionIDProvider defines types that implements the GetTransactionID method.
type UpdatedAtProvider ¶
type UpdatedAtProvider[T any] interface { GetUpdatedAt() T }
UpdatedAtProvider defines types that implements the GetUpdatedAt method.
type ValueTimeProvider ¶
type ValueTimeProvider[T any] interface { GetValueTime() T }
ValueTimeProvider defines types that implements the GetValueTime method.
type ZeroCheckable ¶
type ZeroCheckable interface {
IsZero() bool
}
ZeroCheckable defines types that implements the IsZero method.