Skip to main content

Module fmt

Module fmt 

Source
Expand description

Canonical formatter. One statement per line, two-space indent, comments preserved, at most one consecutive blank line. Idempotent: fmt(fmt(x)) == fmt(x).

Leaf values (strings, numbers, expressions, paths) are reprinted from their source spans, so escapes and interpolations round-trip exactly.

Functionsยง

format