output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOutput

func FormatOutput(w io.Writer, objects []any, opts Opts) error

Types

type Format

type Format int
const (
	FormatAuto Format = iota
	FormatJSON
	FormatJSONL
	FormatCompact
	FormatTable
	FormatCSV
	FormatTSV
	FormatRaw
	FormatNul
)

type Opts

type Opts struct {
	Format    Format
	Color     bool
	ShowFile  bool
	ShowIndex bool
	Flatten   bool
}

Jump to

Keyboard shortcuts

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