console

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

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

A Console allows writing to the console

func New

func New(writer io.Writer) *Console

New constructs a new Console object

func (*Console) Error

func (c *Console) Error() *Console

Creates a Console for writing errors

func (*Console) Notify

func (c *Console) Notify() *Console

Creates a Console for writing notifications

func (*Console) Printf

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

Printf formats and writes to the console

func (*Console) Success

func (c *Console) Success() *Console

Creates a Console for writing successful output

func (*Console) Warn

func (c *Console) Warn() *Console

Creates a Console for writing warnings

type Printer

type Printer interface {
	Printf(format string, a ...interface{}) (n int, err error)
}

A Printer writes stuff to a console

Jump to

Keyboard shortcuts

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