Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderNodeTree ¶ added in v1.1.0
Types ¶
type DefaultInformer ¶
type DefaultInformer struct{}
Defa
func (*DefaultInformer) GetName ¶
func (defaultinformer *DefaultInformer) GetName() string
func (*DefaultInformer) GetPrefix ¶
func (defaultinformer *DefaultInformer) GetPrefix() string
func (*DefaultInformer) GetSuffix ¶
func (defaultinformer *DefaultInformer) GetSuffix() string
type Informer ¶
type Informer interface {
// Get the prefix starting the informer's node type
GetPrefix() string
// Get the suffix starting the informer's node type
GetSuffix() string
// Get the name of the node type.
// Each name (in lowercase) may only exist once. The parser will enforce this.
// No guaranteed order for which informer will be used if multiple with the same name are in use.
// The name "default" is occupied by the built-in default informer for just strings
GetName() string
}
Informers inform the parser about the prefix and suffix that make up a node
type InternalNodes ¶ added in v1.1.2
type InternalNodes interface {
// Whether the informer supports internal nodes.
// If not implemented, defaults to yes
SupportsInternalNodes() bool
}
type Node ¶
type Node struct {
// What kind of node this is
NodeType Informer
// The elements in this node, ordered by appearance
Elements []NodeElement
}
type NodeElement ¶
An element in a node. Either a string or another node. Leaf elements will always be a string. Root element will always be a [DefaultInformaer].
func (*NodeElement) Unmarshal ¶
func (e *NodeElement) Unmarshal() string
Unmarshal an element into the string it got constructed from
Click to show internal directories.
Click to hide internal directories.