output

package
v0.0.0-...-fba7ec4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadResults

func LoadResults(path string) ([]models.QueryResults, error)

LoadResults loads query results from a JSON file

func WriteCSV

func WriteCSV(path string, results []models.QueryResults) error

WriteCSV writes query results to a CSV file

func WriteJSON

func WriteJSON(path string, results []models.QueryResults) error

WriteJSON writes query results to a JSON file

func WriteText

func WriteText(path, content string) error

WriteText writes text content to a file

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer handles writing output files

func NewWriter

func NewWriter(outputDir string) *Writer

NewWriter creates a new output writer

func (*Writer) WriteAll

func (w *Writer) WriteAll(results []models.QueryResults, index *models.StoredIndex) error

WriteAll writes all output files (CSV, JSON, and metadata)

Jump to

Keyboard shortcuts

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