formatter

package
v1.11.8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONOutputFormatter

type JSONOutputFormatter[T any] struct {
	Data T
	Out  io.Writer
}

func (*JSONOutputFormatter[T]) Display

func (j *JSONOutputFormatter[T]) Display() error

type OutputFormatter

type OutputFormatter interface {
	Display() error
}

type TableOutputFormatter

type TableOutputFormatter struct {
	Headers []string
	Rows    [][]string
	Out     io.Writer
}

func (*TableOutputFormatter) Display

func (t *TableOutputFormatter) Display() error

type YAMLOutputFormatter

type YAMLOutputFormatter[T any] struct {
	Data T
	Out  io.Writer
}

func (*YAMLOutputFormatter[T]) Display

func (y *YAMLOutputFormatter[T]) Display() error

Jump to

Keyboard shortcuts

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