io

package
v0.0.0-...-a6a173c Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...interface{}) (n int, err error)

func Errorln

func Errorln(a ...interface{}) (n int, err error)

func Infof

func Infof(format string, a ...interface{}) (n int, err error)

func Warnf

func Warnf(format string, a ...interface{}) (n int, err error)

Types

type Console

type Console struct {
	Stdout io.Writer
	Stderr io.Writer
}

func ColorfulConsole

func ColorfulConsole() *Console

func (Console) Errorf

func (c Console) Errorf(format string, a ...interface{}) (n int, err error)

func (Console) Errorln

func (c Console) Errorln(a ...interface{}) (n int, err error)

func (Console) Printf

func (c Console) Printf(format string, a ...interface{}) (n int, err error)

func (Console) Println

func (c Console) Println(a ...interface{}) (n int, err error)

type UI

type UI interface {
	Printf(format string, a ...interface{}) (n int, err error)
	Println(a ...interface{}) (n int, err error)
	Errorf(format string, a ...interface{}) (n int, err error)
	Errorln(a ...interface{}) (n int, err error)
}
var (
	Default UI = ColorfulConsole()
)

Jump to

Keyboard shortcuts

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