Added new state object change echanism
This commit is contained in:
1 parent
f3818478e2
commit
0f93da400a
4 files changed
+69
-44
No files matched your search
+6
-1
@@ -20,7 +20,12 @@ func (val *Value) String() string {
|
||||
}
|
||||
|
||||
func NewValue(val interface{}) *Value {
|
||||
return &Value{Val: val}
|
||||
t := val
|
||||
if v, ok := val.(*Value); ok {
|
||||
t = v.Val
|
||||
}
|
||||
|
||||
return &Value{Val: t}
|
||||
}
|
||||
|
||||
func (val *Value) Type() reflect.Kind {
|
||||
|
||||
Reference in new issue
Block a user