Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeprecatedIntersection ¶ added in v2.6.0
func DeprecatedIntersection(left, right interface{}) [][]DeprecatedIdentifiable
DeprecatedIntersection returns all 'Identifiable' elements from 'left' and 'right' slice that intersect by 'Identifier()' value. Each intersection is represented as a tuple of two elements - matching elements from 'left' and 'right'. Note, that despite the parameters being declared as 'interface{}' they must contain only the elements implementing 'Identifiable' interface (this is needed to solve lack of covariance in Go)
Note: this construct is DEPRECATED. Instead, use the translation layer for comparing types.
Types ¶
type DeprecatedIdentifiable ¶ added in v2.6.0
type DeprecatedIdentifiable interface {
Identifier() interface{}
}
DeprecatedIdentifiable is a simple interface wrapping any object which has some key field which can be used for later aggregation operations (grouping, intersection, difference etc)
Note: this construct is DEPRECATED. Instead, use the translation layer for comparing types.
func DeprecatedDifference ¶ added in v2.6.0
func DeprecatedDifference(left, right interface{}) []DeprecatedIdentifiable
DeprecatedDifference returns all 'Identifiable' elements that are in left slice and not in the right one. Note, that despite the parameters being declared as 'interface{}' they must contain only the elements implementing 'Identifiable' interface (this is needed to solve lack of covariance in Go).
Note: this construct is DEPRECATED. Instead, use the translation layer for comparing types.