Documentation
¶
Overview ¶
Package render turns the core data types into bytes. Every function is a pure transformation from a session value to a Writer: it performs no history lookup and makes no decisions about which session to show. There are three encodings (Markdown, HTML, JSON) and three views (a full Thread, a Source's metadata, a listing). The Format is a closed set, so dispatch is a switch rather than an interface — polymorphism lives at the Provider boundary, not here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Age ¶ added in v0.6.0
Age renders a recent timestamp as a relative age and an old one as a plain date. The cutoff is a week — past that, "9d ago" is arithmetic, not an answer.
func List ¶
List renders a ranked listing: a plain table by default, or a JSON array for scripts. HTML has no listing view; the cli rejects that combination before it gets here. provider names the agent every row belongs to, and is empty for a cross-agent listing, where each row carries its own.
Types ¶
This section is empty.