From 6f1d1df79f161cfc695f74d271d689ba72c44d09 Mon Sep 17 00:00:00 2001 From: NeonXP Date: Sun, 4 Dec 2022 16:02:03 +0300 Subject: Meta data for objects --- model/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'model/types.go') 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 } -- cgit v1.2.3