import "github.com/brittonhayes/pillager/pkg/format"
Package format contains the renderer and available output formats
Index
type Custom struct {
// contains filtered or unexported fields
}
func (Custom) Report
func (c Custom) Report(w io.Writer, findings []report.Finding) error
func (c *Custom) WithTemplate(t string)
type HTML struct{}
func (h HTML) Report(w io.Writer, findings []report.Finding) error
type HTMLTable struct{}
func (HTMLTable) Report
func (h HTMLTable) Report(w io.Writer, findings []report.Finding) error
type JSON struct{}
func (j JSON) Report(w io.Writer, findings []report.Finding) error
type Markdown struct{}
func (Markdown) Report
func (m Markdown) Report(w io.Writer, findings []report.Finding) error
Reporter is the interface that each of the canonical output formats implement.
type Reporter interface {
Report(io.Writer, []report.Finding) error
}
func StringToReporter(s string) Reporter
StringToReporter takes in a string representation of the preferred reporter.
type Simple struct{}
func (Simple) Report
func (s Simple) Report(w io.Writer, findings []report.Finding) error
type TOML struct{}
func (t TOML) Report(w io.Writer, findings []report.Finding) error
type Table struct{}
func (Table) Report
func (t Table) Report(w io.Writer, findings []report.Finding) error
type YAML struct{}
func (y YAML) Report(w io.Writer, findings []report.Finding) error
Generated by gomarkdoc