MCPcopy Create free account
hub / github.com/upper/db / Op

Function Op

comparison.go:161–163  ·  view source on GitHub ↗

Op returns a custom comparison operator.

(customOperator string, value interface{})

Source from the content-addressed store, hash-verified

159
160// Op returns a custom comparison operator.
161func Op(customOperator string, value interface{}) *Comparison {
162 return &Comparison{adapter.NewCustomComparisonOperator(customOperator, value)}
163}
164
165func toInterfaceArray(value interface{}) []interface{} {
166 rv := reflect.ValueOf(value)

Callers 1

TestComparisonOperatorsFunction · 0.85

Calls 1

Tested by 1

TestComparisonOperatorsFunction · 0.68