Documentation
¶
Overview ¶
Package render converts Result values into human-readable or machine-parseable output. Each format is a separate function; the top-level Render dispatcher selects based on the format string.
Index ¶
- Constants
- func PrintFooter(w io.Writer, result *model.Result, verbose bool)
- func Render(w io.Writer, result *model.Result, format string) error
- func RenderCategories(w io.Writer, cats []model.Category, format string) error
- func RenderReleases(w io.Writer, releases []model.Release, format string) error
- func RenderSources(w io.Writer, sources []model.Source, format string) error
- func RenderTags(w io.Writer, tags []model.Tag, format string) error
- func RenderTo(path string, result *model.Result, format string) error
Constants ¶
View Source
const ( FormatTable = "table" FormatJSON = "json" FormatJSONL = "jsonl" FormatCSV = "csv" FormatTSV = "tsv" FormatMD = "md" )
Format constants matching --format flag values.
Variables ¶
This section is empty.
Functions ¶
func PrintFooter ¶
PrintFooter writes warnings and stats to w when verbose mode is on.
func RenderCategories ¶
RenderCategories writes a category slice using the given format.
func RenderReleases ¶
RenderReleases writes a release slice using the given format.
func RenderSources ¶
RenderSources writes a source slice using the given format.
func RenderTags ¶
RenderTags writes a tag slice using the given format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.