report

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package report renders a deliverable Markdown report from the exploration graph: confirmed findings (with severity/evidence) (docs §15 P5).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetsCSV

func AssetsCSV(assets []*db.Asset, langs ...locale.Lang) []byte

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

func FindingFilename(f *db.DBFinding) string

FindingFilename generates a safe name such as critical_SQLi_#123.md. Path separators and control characters are removed for safe ZIP entries.

func FindingsCSV

func FindingsCSV(fs []*db.DBFinding, langs ...locale.Lang) []byte

FindingsCSV renders summary fields with a UTF-8 BOM for Excel. Use Markdown or JSON for full report and evidence content.

func FindingsMarkdown

func FindingsMarkdown(fs []*db.DBFinding, generatedAt time.Time, langs ...locale.Lang) string

FindingsMarkdown renders a severity-sorted report with summary counts, class, status, task, evidence, and the stored detailed report.

func Markdown

func Markdown(in Input) string

Markdown renders the report.

func SingleFindingMarkdown

func SingleFindingMarkdown(f *db.DBFinding, generatedAt time.Time, langs ...locale.Lang) string

SingleFindingMarkdown renders one finding for individual-file archives.

Types

type Input

type Input struct {
	Language    locale.Lang
	Title       string
	Goal        string
	GeneratedAt time.Time
	AssetCounts map[string]int
	Findings    []*db.Node
}

Input bundles what the report needs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL