aboutsummaryrefslogtreecommitdiff
path: root/model/types.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/types.go
parent0d431048d3e68609b90306efd9ed015143ae651f (diff)
Meta data for objectsv0.0.4
Diffstat (limited to 'model/types.go')
-rw-r--r--model/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/types.go b/model/types.go
index bba7527..72dce5f 100644
--- a/model/types.go
+++ b/model/types.go
@@ -13,6 +13,7 @@ const (
type NodeObjectValue map[string]Node
-func (n NodeObjectValue) Set(k string, v any) {
+func (n NodeObjectValue) Set(k string, v any) error {
n[k] = NewNode(v)
+ return nil
}