19 lines
616 B
Go
19 lines
616 B
Go
|
package parser
|
||
|
|
||
|
import "reflect"
|
||
|
|
||
|
// MapNamePlaceholder is the placeholder for the map name.
|
||
|
const MapNamePlaceholder = "<name>"
|
||
|
|
||
|
// Node is a label node.
|
||
|
type Node struct {
|
||
|
Name string `json:"name"`
|
||
|
Description string `json:"description,omitempty"`
|
||
|
FieldName string `json:"fieldName"`
|
||
|
Value string `json:"value,omitempty"`
|
||
|
Disabled bool `json:"disabled,omitempty"`
|
||
|
Kind reflect.Kind `json:"kind,omitempty"`
|
||
|
Tag reflect.StructTag `json:"tag,omitempty"`
|
||
|
Children []*Node `json:"children,omitempty"`
|
||
|
}
|