term

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Formatter *color.Colorizer = color.New()

	ErrorOut io.Writer = os.Stderr
	WarnOut  io.Writer = os.Stderr
	StdOut   io.Writer = os.Stdout
	DebugOut io.Writer = os.Stderr
)

Functions

func Debugf

func Debugf(format string, obj ...interface{}) (int, error)

func Debugff

func Debugff(format string, obj ...interface{}) (int, error)

func Errorf

func Errorf(format string, obj ...interface{}) (int, error)

func Errorff

func Errorff(format string, obj ...interface{}) (int, error)

func Printf

func Printf(format string, obj ...interface{}) (int, error)

func Println

func Println(obj ...interface{}) (int, error)

func SetMode

func SetMode(mode string)

func Sprintf

func Sprintf(format string, obj ...interface{}) string

func Warnf

func Warnf(format string, obj ...interface{}) (int, error)

func Warnff

func Warnff(format string, obj ...interface{}) (int, error)

Types

type DebugWriter

type DebugWriter struct {
	File io.Writer
}

func NewDebugWriter

func NewDebugWriter(w io.Writer) *DebugWriter

func (*DebugWriter) Write

func (w *DebugWriter) Write(p []byte) (n int, err error)

type ErrorWriter

type ErrorWriter struct {
	File io.Writer
}

func NewErrorWriter

func NewErrorWriter(w io.Writer) *ErrorWriter

func (*ErrorWriter) Write

func (w *ErrorWriter) Write(p []byte) (n int, err error)

type WarnWriter

type WarnWriter struct {
	File io.Writer
}

func NewWarnWriter

func NewWarnWriter(w io.Writer) *WarnWriter

func (*WarnWriter) Write

func (w *WarnWriter) 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