Define TypedValue comparators; Make parser init more flexible

This commit is contained in:
Tomaž Jerman
2021-08-16 09:15:15 +02:00
parent ddebcf6457
commit 98c16227b2
7 changed files with 241 additions and 6 deletions
+7 -1
View File
@@ -1,6 +1,8 @@
package expr
import "reflect"
import (
"reflect"
)
type (
Type interface {
@@ -14,6 +16,10 @@ type (
Get() interface{}
}
Comparable interface {
Compare(TypedValue) (int, error)
}
typedValueWrap struct {
Value interface{} `json:"@value"`
Type string `json:"@type"`