output

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedColor    = color.FgRed
	GreenColor  = color.FgGreen
	YellowColor = color.FgYellow
)

Functions

This section is empty.

Types

type Printer

type Printer interface {
	Cprintf(colorAttribute *color.Attribute, format string, args ...interface{}) (n int, err error)
	Error(err error)
	DebugMessage(message, comment string)
	Message(message string, colorAttribute *color.Attribute, comment string)
}

type SilentPrint added in v1.4.0

type SilentPrint struct {
	*SimplePrint
}

func NewSilentPrint added in v1.4.0

func NewSilentPrint() *SilentPrint

func (*SilentPrint) Cprintf added in v1.4.0

func (p *SilentPrint) Cprintf(_ *color.Attribute, format string, args ...interface{}) (n int, err error)

func (*SilentPrint) Message added in v1.4.0

func (p *SilentPrint) Message(message string, _ *color.Attribute, comment string)

type SimplePrint

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

func NewSimplePrint

func NewSimplePrint(w io.Writer) *SimplePrint

func (*SimplePrint) Cprintf

func (p *SimplePrint) Cprintf(colorAttribute *color.Attribute, format string, args ...interface{}) (n int, err error)

func (*SimplePrint) DebugMessage

func (p *SimplePrint) DebugMessage(message, comment string)

func (*SimplePrint) Error

func (p *SimplePrint) Error(err error)

func (*SimplePrint) Message

func (p *SimplePrint) Message(message string, colorAttribute *color.Attribute, comment string)

Jump to

Keyboard shortcuts

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