printer

package
v0.0.0-...-1f1f075 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Format() string
	Print(w io.Writer, obj any) error
}

type JSON

type JSON struct {
}

func NewJSON

func NewJSON() *JSON

func (*JSON) Format

func (printer *JSON) Format() string

func (*JSON) Print

func (printer *JSON) Print(w io.Writer, obj any) error

type YAML

type YAML struct {
}

func NewYAML

func NewYAML() *YAML

func (*YAML) Format

func (printer *YAML) Format() string

func (*YAML) Print

func (printer *YAML) Print(w io.Writer, obj any) error

Jump to

Keyboard shortcuts

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