aboutsummaryrefslogtreecommitdiff
path: root/model/objectNode.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/objectNode.go')
-rw-r--r--model/objectNode.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/objectNode.go b/model/objectNode.go
index cfa2a30..989fd9e 100644
--- a/model/objectNode.go
+++ b/model/objectNode.go
@@ -7,6 +7,7 @@ import (
type ObjectNode struct {
Value NodeObjectValue
+ Meta map[string]any
}
func (n ObjectNode) Type() NodeType {
@@ -56,3 +57,7 @@ func (n *ObjectNode) Set(v any) error {
n.Value = val
return nil
}
+
+func (n *ObjectNode) Remove(key string) {
+ delete(n.Value, key)
+}