output

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatIngestReport

func FormatIngestReport(report interface{}, format Format, writer io.Writer) error

FormatIngestReport formats an ingestion report

Types

type Format

type Format string

Format represents an output format type

const (
	FormatJSON  Format = "json"
	FormatYAML  Format = "yaml"
	FormatTable Format = "table"
)

type Formatter

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

Formatter handles formatting data for output

func NewFormatter

func NewFormatter(format Format, writer io.Writer) *Formatter

NewFormatter creates a new formatter

func (*Formatter) Format

func (f *Formatter) Format(data interface{}) error

Format formats the data according to the configured format

Jump to

Keyboard shortcuts

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