console

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package console provides useful console functionality.

Index

Constants

View Source
const (
	ColorWhite   = "white"
	ColorCyan    = "cyan"
	ColorRed     = "red"
	ColorGreen   = "green"
	ColorYellow  = "yellow"
	ColorMagenta = "magenta"
)

Console colors

Variables

This section is empty.

Functions

This section is empty.

Types

type Console added in v0.2.0

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

Console structure handles all things console related.

func NewConsole added in v0.2.0

func NewConsole() *Console

NewConsole creates a new console structure with default options.

func (*Console) Print added in v0.2.0

func (cls *Console) Print(msg string)

Print prints to console.

func (*Console) PrintColor added in v0.2.0

func (cls *Console) PrintColor(msg string, clr string)

PrintColor prints to console, checking for color option.

func (*Console) PrintError added in v0.2.0

func (cls *Console) PrintError(msg string)

PrintError prints error to console.

func (*Console) SetOptColor added in v0.2.0

func (cls *Console) SetOptColor(clr bool)

SetOptColor sets color option.

Jump to

Keyboard shortcuts

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