Documentation
¶
Overview ¶
Package render turns zotero client values into terminal output for humans: aligned tables and detail views. Machine-readable output is internal/output's job. render holds no I/O or network logic — every function writes to an io.Writer so output is easy to test and redirect.
Index ¶
- func Annotations(w io.Writer, attachmentKey string, annotations []zotero.Annotation)
- func Attachment(w io.Writer, attachment zotero.Attachment)
- func CSV(w io.Writer, items []zotero.Envelope) error
- func CollectionPaths(w io.Writer, paths []zotero.CollectionPath)
- func Collections(w io.Writer, cols []zotero.Envelope, flat bool)
- func Item(w io.Writer, item zotero.Envelope, children []zotero.Envelope)
- func Items(w io.Writer, items []zotero.Envelope)
- func Markdown(w io.Writer, items []zotero.Envelope) error
- func Note(w io.Writer, note zotero.Note)
- func Relations(w io.Writer, itemKey string, relations []zotero.Relation)
- func Stats(w io.Writer, library string, s zotero.Stats)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶ added in v0.9.0
func Annotations(w io.Writer, attachmentKey string, annotations []zotero.Annotation)
Annotations writes compact annotation metadata without text or comments.
func Attachment ¶ added in v0.9.0
func Attachment(w io.Writer, attachment zotero.Attachment)
Attachment writes one attachment's metadata.
func CollectionPaths ¶ added in v0.9.0
func CollectionPaths(w io.Writer, paths []zotero.CollectionPath)
CollectionPaths writes requested collection paths in request order.
func Collections ¶
Collections writes collections as an indented tree (by parent), or as a flat key/name table when flat is true.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.