Documentation ¶
Index ¶
- Constants
- type Branch
- func (b *Branch[T]) Add(branch *Branch[T]) *Branch[T]
- func (b *Branch[T]) Branches() []*Branch[T]
- func (b *Branch[T]) Get() T
- func (b *Branch[T]) Level() int
- func (b *Branch[T]) Parent() *Branch[T]
- func (b *Branch[T]) ParentAt(level int) *Branch[T]
- func (b *Branch[T]) Remove(branch *Branch[T]) (*Branch[T], bool)
- func (b *Branch[T]) Set(v T)
- func (b *Branch[T]) Walk(walk func(branch *Branch[T]))
- type NodeTransformer
Constants ¶
View Source
const Type directive.Type = "toc"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeTransformer ¶
type NodeTransformer struct { }
func (*NodeTransformer) PostTransform ¶
func (t *NodeTransformer) PostTransform(doc *ast.Document, reader text.Reader, pc parser.Context) error
Transform implements directive.NodeTransformer.
Click to show internal directories.
Click to hide internal directories.