Documentation
¶
Index ¶
- Constants
- func IncludedNode(n ast.Node) (ast.Node, bool)
- func IncludedSource(n ast.Node) ([]byte, bool)
- type MarkdownRenderer
- type Node
- func (n *Node) AppendChild(self ast.Node, child ast.Node)
- func (n *Node) Attribute(name []byte) (interface{}, bool)
- func (n *Node) AttributeString(name string) (interface{}, bool)
- func (n *Node) Attributes() []ast.Attribute
- func (n *Node) ChildCount() int
- func (n *Node) Dump(source []byte, level int)
- func (n *Node) FirstChild() ast.Node
- func (n *Node) HasBlankPreviousLines() bool
- func (n *Node) HasChildren() bool
- func (n *Node) InsertAfter(self ast.Node, v1 ast.Node, insertee ast.Node)
- func (n *Node) InsertBefore(self ast.Node, v1 ast.Node, insertee ast.Node)
- func (n *Node) IsRaw() bool
- func (n *Node) Kind() ast.NodeKind
- func (n *Node) LastChild() ast.Node
- func (n *Node) Lines() *text.Segments
- func (n *Node) NextSibling() ast.Node
- func (n *Node) OwnerDocument() *ast.Document
- func (n *Node) Parent() ast.Node
- func (n *Node) PreviousSibling() ast.Node
- func (n *Node) RemoveAttributes()
- func (n *Node) RemoveChild(self ast.Node, child ast.Node)
- func (n *Node) RemoveChildren(self ast.Node)
- func (n *Node) ReplaceChild(self ast.Node, v1 ast.Node, insertee ast.Node)
- func (n *Node) SetAttribute(name []byte, value interface{})
- func (n *Node) SetAttributeString(name string, value interface{})
- func (n *Node) SetBlankPreviousLines(v bool)
- func (n *Node) SetLines(segments *text.Segments)
- func (n *Node) SetNextSibling(next ast.Node)
- func (n *Node) SetParent(parent ast.Node)
- func (n *Node) SetPreviousSibling(ast.Node)
- func (n *Node) SortChildren(comparator func(n1 ast.Node, n2 ast.Node) int)
- func (n *Node) Text(source []byte) []byte
- func (n *Node) Type() ast.NodeType
- type NodeRenderer
- type NodeTransformer
- type SourceCache
Constants ¶
View Source
const Type directive.Type = "include"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarkdownRenderer ¶
type MarkdownRenderer struct {
Cache *SourceCache
}
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AppendChild ¶
AppendChild implements ast.Node.
func (*Node) AttributeString ¶
AttributeString implements ast.Node.
func (*Node) Attributes ¶
Attributes implements ast.Node.
func (*Node) HasBlankPreviousLines ¶
HasBlankPreviousLines implements ast.Node.
func (*Node) InsertAfter ¶
InsertAfter implements ast.Node.
func (*Node) InsertBefore ¶
InsertBefore implements ast.Node.
func (*Node) OwnerDocument ¶
OwnerDocument implements ast.Node.
func (*Node) PreviousSibling ¶
PreviousSibling implements ast.Node.
func (*Node) RemoveAttributes ¶
func (n *Node) RemoveAttributes()
RemoveAttributes implements ast.Node.
func (*Node) RemoveChild ¶
RemoveChild implements ast.Node.
func (*Node) RemoveChildren ¶
RemoveChildren implements ast.Node.
func (*Node) ReplaceChild ¶
ReplaceChild implements ast.Node.
func (*Node) SetAttribute ¶
SetAttribute implements ast.Node.
func (*Node) SetAttributeString ¶
SetAttributeString implements ast.Node.
func (*Node) SetBlankPreviousLines ¶
SetBlankPreviousLines implements ast.Node.
func (*Node) SetNextSibling ¶
SetNextSibling implements ast.Node.
func (*Node) SetPreviousSibling ¶
SetPreviousSibling implements ast.Node.
func (*Node) SortChildren ¶
SortChildren implements ast.Node.
type NodeRenderer ¶
type NodeRenderer struct { Cache *SourceCache Renderer renderer.Renderer }
type NodeTransformer ¶
type NodeTransformer struct { Cache *SourceCache Parser parser.Parser SourceURL *url.URL }
type SourceCache ¶
type SourceCache struct {
// contains filtered or unexported fields
}
func NewSourceCache ¶
func NewSourceCache() *SourceCache
Click to show internal directories.
Click to hide internal directories.