output

package
v0.9.27 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 5 Imported by: 1 module, 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

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