blob: 10e60fa88d4dbf6ea690478b7e43cdd925f9cfdf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package model
type NodeType string
const (
StringNode NodeType = "string"
NumberNode NodeType = "number"
ObjectNode NodeType = "object"
ArrayNode NodeType = "array"
BooleanNode NodeType = "boolean"
NullNode NodeType = "null"
)
type NodeObjectValue map[string]*Node
func (n NodeObjectValue) Set(k string, v any) {
n[k] = NewNode(v)
}
type NodeArrayValue []*Node
|