aboutsummaryrefslogtreecommitdiff
path: root/model/nullNode.go
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2022-11-21 04:46:32 +0300
committerNeonXP <i@neonxp.dev>2022-11-21 04:46:32 +0300
commit0d431048d3e68609b90306efd9ed015143ae651f (patch)
tree2a5fe21654bb9af02a0419722f2cd80d588465a2 /model/nullNode.go
parent4054a50ce4232ebfc4dae043863ad96d46b25b43 (diff)
added set method
Diffstat (limited to 'model/nullNode.go')
-rw-r--r--model/nullNode.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/nullNode.go b/model/nullNode.go
index 448b18b..d510828 100644
--- a/model/nullNode.go
+++ b/model/nullNode.go
@@ -9,3 +9,7 @@ func (n NullNode) Type() NodeType {
func (n NullNode) MarshalJSON() ([]byte, error) {
return []byte("null"), nil
}
+
+func (n NullNode) Set(v any) error {
+ return nil
+}