19 lines
351 B
Go
19 lines
351 B
Go
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)
|
|
}
|