output

package
v1.5.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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