render

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package render converts a tree.Config to canonical text. Matched nodes use their schema definition with normalized spacing and two-space indentation. Unmatched nodes use their raw text. Raw block bodies and terminators are preserved exactly. A schema.SectionExit token closes each section that declares one.

The round-trip contract is canonical, not byte-exact: render(parse(x)) == canonical(x), and canonical is a fixed point. Remediation trees arrive already scheduled by the remediate package and use the same rendering path. The renderer ignores operation tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(cfg *tree.Config) string

Render emits canonical text in tree order.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL