aboutsummaryrefslogtreecommitdiff
path: root/model/objectNode.go
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2022-12-04 16:02:03 +0300
committerNeonXP <i@neonxp.dev>2022-12-04 16:02:03 +0300
commit6f1d1df79f161cfc695f74d271d689ba72c44d09 (patch)
treef82a8d091629842613b241ca73f3d4259612f693 /model/objectNode.go
parent0d431048d3e68609b90306efd9ed015143ae651f (diff)
Meta data for objectsv0.0.4
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)
+}