aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2022-11-17 19:46:17 +0300
committerNeonXP <i@neonxp.dev>2022-11-17 19:46:17 +0300
commit59e421989e5a1b8da5200323c4478645c339d66b (patch)
tree9d18e27a7189d9c189546c1276ca342eb3947b82
parenteb26d597c6d526f84077afdc141b0a5d585c7da3 (diff)
Added metadata to nodev0.0.2
-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