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

output

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT 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(jsonOutput, plain, quiet, noColor bool) *Formatter

func (*Formatter) Error

func (f *Formatter) Error(format string, args ...interface{})

func (*Formatter) IsJSON

func (f *Formatter) IsJSON() bool

func (*Formatter) JSON

func (f *Formatter) JSON(data interface{}) error

func (*Formatter) Print

func (f *Formatter) Print(format string, args ...interface{})

func (*Formatter) Println

func (f *Formatter) Println(args ...interface{})

func (*Formatter) Success

func (f *Formatter) Success(msg string)

func (*Formatter) Table

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

func (*Formatter) Warn

func (f *Formatter) Warn(msg string)

Jump to

Keyboard shortcuts

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