json

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputFormatter

type OutputFormatter struct {
	OutputIndividualRows bool
	Compact              bool
	OutputFile           string
	OutputFileTemplate   string
	OutputMultipleFiles  bool
	// contains filtered or unexported fields
}

func NewArrayOutputFormatter added in v1.4.0

func NewArrayOutputFormatter() *OutputFormatter

func NewLinesOutputFormatter added in v1.4.0

func NewLinesOutputFormatter() *OutputFormatter

func NewOutputFormatter

func NewOutputFormatter(options ...OutputFormatterOption) *OutputFormatter

func (*OutputFormatter) Close added in v0.3.1

func (f *OutputFormatter) Close(ctx context.Context, w io.Writer) error

func (*OutputFormatter) ContentType added in v0.2.84

func (f *OutputFormatter) ContentType() string

func (*OutputFormatter) OutputRow added in v0.3.1

func (r *OutputFormatter) OutputRow(ctx context.Context, row types.Row, w io.Writer) error

func (*OutputFormatter) OutputTable added in v0.3.1

func (f *OutputFormatter) OutputTable(ctx context.Context, table_ *types.Table, w io.Writer) error

func (*OutputFormatter) RegisterRowMiddlewares added in v0.3.1

func (f *OutputFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error

func (*OutputFormatter) RegisterTableMiddlewares added in v0.3.1

func (f *OutputFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error

type OutputFormatterOption

type OutputFormatterOption func(*OutputFormatter)

func WithCompact added in v1.4.0

func WithCompact(compact bool) OutputFormatterOption

func WithOutputFile

func WithOutputFile(file string) OutputFormatterOption

func WithOutputFileTemplate

func WithOutputFileTemplate(outputFileTemplate string) OutputFormatterOption

func WithOutputIndividualRows

func WithOutputIndividualRows(outputIndividualRows bool) OutputFormatterOption

func WithOutputMultipleFiles

func WithOutputMultipleFiles(outputMultipleFiles bool) OutputFormatterOption

Jump to

Keyboard shortcuts

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