Skip to main content

Module fmt

Module fmt 

Source

Structs§

FmtConfig
Configuration for the fmt command.

Functions§

fmt_data
Format in-memory data. Works on byte slices directly — no UTF-8 validation pass. The formatter only inspects ASCII whitespace/punctuation, so raw bytes are fine.
fmt_file
Reformat text from input and write the result to output.