csv

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 6 Imported by: 0 modules, 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 csv provides a CSV output formatter for Leakwatch findings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	// ShowRaw, when true, appends a trailing "raw" column holding the
	// unredacted secret value. When false, no raw column is emitted at all.
	ShowRaw bool
}

Formatter outputs findings in CSV format.

func (*Formatter) FileExtension

func (f *Formatter) FileExtension() string

FileExtension returns the CSV file extension.

func (*Formatter) Format

func (f *Formatter) Format(w io.Writer, findings []finding.Finding) error

Format writes findings as CSV to the given writer. Header (ShowRaw=false): id,detector_id,severity,redacted,source,file_path,line,commit,verification_status,remediation Header (ShowRaw=true): the above, with a trailing "raw" column. Every cell is sanitized against spreadsheet formula injection before writing.

Jump to

Keyboard shortcuts

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