Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply normalizes a document into canonical 3.1 form, so two documents can be compared without dialect differences producing false drift. It performs the mechanical 3.0 -> 3.1 rewrites, bumps the version to 3.1.0, and returns a new IR whose Raw bytes are the re-rendered canonical form.
It re-parses from in.Raw so it owns a mutable doc + model, mutates the model, then RenderAndReload renders the mutated state (including our edits) to bytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.