printer

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

Printer to console utility

func New

func New(stdout io.Writer) *Printer

func (*Printer) Error

func (printer *Printer) Error(s string, args ...any) error

func (*Printer) FormattedJSON

func (printer *Printer) FormattedJSON(data string) error

func (*Printer) Info

func (printer *Printer) Info(s string, args ...any) error

func (*Printer) Notice

func (printer *Printer) Notice(s string, args ...any) error

func (*Printer) Success

func (printer *Printer) Success(s string, args ...any) error

func (*Printer) Warning

func (printer *Printer) Warning(s string, args ...any) error

func (*Printer) Write added in v1.1.0

func (printer *Printer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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