aboutsummaryrefslogblamecommitdiff
path: root/model/types.go
blob: 72dce5ffa7e34d9143f77246ad5b4077a853bc3a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                    





                                        

 
                                    
 
                                                     
                         
                  
 
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) error {
	n[k] = NewNode(v)
	return nil
}