exporter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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