Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONExporter ¶
type JSONExporter struct {
// contains filtered or unexported fields
}
JSONExporter exports analysis results in JSON format
func NewDefaultJSONExporter ¶
func NewDefaultJSONExporter() *JSONExporter
NewDefaultJSONExporter creates a new JSONExporter with default settings (stdout)
func NewJSONExporter ¶
func NewJSONExporter(writer io.Writer) *JSONExporter
NewJSONExporter creates a new JSONExporter with the specified writer
func (*JSONExporter) Export ¶
func (e *JSONExporter) Export(ctx context.Context, results []schemas.AnalyzeResult) error
Export outputs the analysis results in indented JSON format
type TableExporter ¶
type TableExporter struct {
// contains filtered or unexported fields
}
TableExporter exports analysis results in a delimiter-separated format (CSV/TSV).
func NewCSVExporter ¶
func NewCSVExporter(w io.Writer) *TableExporter
NewCSVExporter creates a new exporter that writes Comma-Separated Values.
func NewDefaultCSVExporter ¶
func NewDefaultCSVExporter() *TableExporter
NewDefaultCSVExporter creates a CSV exporter to stdout.
func NewTSVExporter ¶
func NewTSVExporter(w io.Writer) *TableExporter
NewTSVExporter creates a new exporter that writes Tab-Separated Values.
func (*TableExporter) Export ¶
func (e *TableExporter) Export(ctx context.Context, results []schemas.AnalyzeResult) error
Export outputs the analysis results.
Click to show internal directories.
Click to hide internal directories.