Help us shape the future of Go! Take the 2026 Go Developer Survey

output

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

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

func New

func New(stdout, stderr io.Writer, asJSON, plain, quiet, noColor bool) *Formatter

func (*Formatter) Errorf

func (f *Formatter) Errorf(format string, args ...any)

func (*Formatter) IsJSON

func (f *Formatter) IsJSON() bool

func (*Formatter) IsPlain

func (f *Formatter) IsPlain() bool

func (*Formatter) JSON

func (f *Formatter) JSON(data any) error

func (*Formatter) Printf

func (f *Formatter) Printf(format string, args ...any)

func (*Formatter) Println

func (f *Formatter) Println(args ...any)

func (*Formatter) Success

func (f *Formatter) Success(message string)

func (*Formatter) Table

func (f *Formatter) Table(headers []string, rows [][]string)

Jump to

Keyboard shortcuts

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