aboutsummaryrefslogtreecommitdiff
path: root/model/types.go
blob: bba752745bf0f8cbe2886294d2370b12cd144643 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package model

type NodeType string

const (
	StringType  NodeType = "string"
	NumberType  NodeType = "number"
	ObjectType  NodeType = "object"
	ArrayType   NodeType = "array"
	BooleanType NodeType = "boolean"
	NullType    NodeType = "null"
)

type NodeObjectValue map[string]Node

func (n NodeObjectValue) Set(k string, v any) {
	n[k] = NewNode(v)
}