aboutsummaryrefslogtreecommitdiff
path: root/model/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/node.go')
-rw-r--r--model/node.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/node.go b/model/node.go
index fea8fcd..a4a509f 100644
--- a/model/node.go
+++ b/model/node.go
@@ -9,6 +9,7 @@ import (
// Node of JSON tree
type Node struct {
Type NodeType
+ Meta Meta
stringValue string
numberValue float64
objectValue NodeObjectValue
@@ -143,3 +144,6 @@ func (n *Node) Len() (int, error) {
return 0, fmt.Errorf("merge not implemented for type %s", n.Type)
}
}
+
+// Meta represents node metadata
+type Meta map[string]any