printers

package
v0.0.0-...-85cb655 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Rows []Row
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(numCols int) *Block

func (*Block) AddTo

func (b *Block) AddTo(col int, v string) error

func (*Block) Render

func (b *Block) Render(w io.Writer, sep string) error

type ColumnDefinition

type ColumnDefinition struct {
	Header        string
	Query         string
	CompiledQuery *gojq.Code
	Transformer   transformers.TransformFunc
}

type CustomPrinter

type CustomPrinter struct {
	Columns       []ColumnDefinition
	Decoder       runtime.Decoder
	IgnoreMissing bool
	NoHeaders     bool
	// contains filtered or unexported fields
}

func (*CustomPrinter) PrintObj

func (c *CustomPrinter) PrintObj(o runtime.Object, w io.Writer) error

type Row

type Row []string

Jump to

Keyboard shortcuts

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