diff options
Diffstat (limited to 'model/nullNode.go')
-rw-r--r-- | model/nullNode.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/model/nullNode.go b/model/nullNode.go new file mode 100644 index 0000000..448b18b --- /dev/null +++ b/model/nullNode.go @@ -0,0 +1,11 @@ +package model + +type NullNode struct{} + +func (n NullNode) Type() NodeType { + return NullType +} + +func (n NullNode) MarshalJSON() ([]byte, error) { + return []byte("null"), nil +} |