Documentation
¶
Overview ¶
Package report renders a deliverable Markdown report from the exploration graph: confirmed findings (with severity/evidence) (docs §15 P5).
Index ¶
- func AssetsCSV(assets []*db.Asset, langs ...locale.Lang) []byte
- func FindingFilename(f *db.DBFinding) string
- func FindingsCSV(fs []*db.DBFinding, langs ...locale.Lang) []byte
- func FindingsMarkdown(fs []*db.DBFinding, generatedAt time.Time, langs ...locale.Lang) string
- func Markdown(in Input) string
- func SingleFindingMarkdown(f *db.DBFinding, generatedAt time.Time, langs ...locale.Lang) string
- type Input
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetsCSV ¶
AssetsCSV renders one row per asset with a UTF-8 BOM for Excel. Fixed identity columns plus a compact-JSON details column keep the CSV flat. Empty input yields a headers-only file, matching the findings export.
func FindingFilename ¶
FindingFilename generates a safe name such as critical_SQLi_#123.md. Path separators and control characters are removed for safe ZIP entries.
func FindingsCSV ¶
FindingsCSV renders summary fields with a UTF-8 BOM for Excel. Use Markdown or JSON for full report and evidence content.
func FindingsMarkdown ¶
FindingsMarkdown renders a severity-sorted report with summary counts, class, status, task, evidence, and the stored detailed report.