Tables
Tables
Table
Renders rows with an explicit row template. Use this when you want complete control over rendered columns.

Wide characters, emoji and escape sequences are measured in columns, and multiline cells stay aligned:

TableIter
Consumes an iterator (iter.Seq2) and renders rows incrementally.
Iterator fetch errors are reported with row numbers.

TableX
Auto-generates a row template from struct metadata.
Use this for quick tabular output with minimal setup.
TableAuto takes options to skip, include, format and color columns, and Facts prints a single struct.

Header inference and tags
- Header names are inferred from
json/xmltags first, then field names. header:"CUSTOM"overrides inferred headers.- Header options:
align-rightandalign-left. - Nested structs are flattened unless the nested type exposes
String().
Template helpers
Table templates use predefined helper functions documented in Template functions.
Last updated on