print

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTemplatePrinter

type GoTemplatePrinter struct {
	// contains filtered or unexported fields
}

func NewGoTemplatePrinter

func NewGoTemplatePrinter(w io.Writer, goTemplateFileName string) (*GoTemplatePrinter, error)

func (*GoTemplatePrinter) Close

func (p *GoTemplatePrinter) Close() error

func (*GoTemplatePrinter) Print

func (p *GoTemplatePrinter) Print(v any) error

type JSONPrinter

type JSONPrinter struct {
	// contains filtered or unexported fields
}

func NewJSONPrinter

func NewJSONPrinter(w io.Writer) *JSONPrinter

func (*JSONPrinter) Close

func (p *JSONPrinter) Close() error

func (*JSONPrinter) Print

func (p *JSONPrinter) Print(v any) error

type Printer

type Printer interface {
	Print(v any) error
	io.Closer
}

func NewPrinter

func NewPrinter(w io.Writer, output string) (Printer, error)

type YAMLPrinter

type YAMLPrinter struct {
	// contains filtered or unexported fields
}

func NewYAMLPrinter

func NewYAMLPrinter(w io.Writer) *YAMLPrinter

func (*YAMLPrinter) Close

func (p *YAMLPrinter) Close() error

func (*YAMLPrinter) Print

func (p *YAMLPrinter) Print(v any) error

Jump to

Keyboard shortcuts

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