Documentation
¶
Index ¶
- func Parse(dec *json.Decoder) (any, error)
- type Node
- func NewLineBreakNode() *Node
- func NewListItemNodeWithChildren(children []*Node, source map[string]any) *Node
- func NewListItemNodeWithText(text string, source map[string]any) *Node
- func NewListNode(listType string) *Node
- func NewPlaceholderNode(text string, source map[string]any) *Node
- func NewTextNode(text string, source map[string]any) *Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { NodeID string `json:"id,omitempty"` NodeType string `json:"type,omitempty"` NodeName string `json:"name,omitempty"` TextContent string `json:"text,omitempty"` Children []*Node `json:"children,omitempty"` Parent *Node `json:"-"` Attrs map[string]string `json:"attrs,omitempty"` // contains filtered or unexported fields }
func NewLineBreakNode ¶
func NewLineBreakNode() *Node
func NewListItemNodeWithText ¶
func NewListNode ¶
Click to show internal directories.
Click to hide internal directories.