Documentation ¶
Index ¶
- Constants
- Variables
- type Outputter
- func (o *Outputter) ErrMsg(message string)
- func (o *Outputter) InfMsg(message string)
- func (o *Outputter) InfMsgNB(message string)
- func (o *Outputter) SucMsg(message string)
- func (o *Outputter) SysMsg(message string)
- func (o *Outputter) SysMsgNB(message string)
- func (o *Outputter) WrnMsg(message string)
Constants ¶
View Source
const ANSI_BLACK int = 30
View Source
const ANSI_BLUE int = 34
View Source
const ANSI_BLUE_L int = 94
View Source
const ANSI_GREEN int = 32
View Source
const ANSI_GREEN_L int = 92
View Source
const ANSI_RED int = 31
View Source
const ANSI_RED_L int = 91
View Source
const ANSI_WHITE int = 47
View Source
const ANSI_YELLOW int = 33
View Source
const ANSI_YELLOW_L int = 93
View Source
const ESCAPE_CODE string = "\x1B"
View Source
const FAIL_CHR string = "-"
View Source
const INFO_CHR string = "i"
View Source
const SUCCESS_CHR string = "+"
View Source
const SYS_CHR string = "*"
View Source
const WARNING_CHR string = "!"
Variables ¶
View Source
var ANSI_RESET string = fmt.Sprintf("%s0m", CSI)
control sequence used to reset the output settings to the original values.
View Source
var BLUE_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_BLUE_L)
View Source
var CLEAR_LINE string = fmt.Sprintf("\r%s2K\r", CSI)
control sequence used to clear the entirty of the current line
control sequence used to clear the entire screen and move the cursor to (0,0).
View Source
var CSI string = fmt.Sprintf("%s[", ESCAPE_CODE)
control sequence introducer shorthand (aka: "\x1B["")
View Source
var FAIL_SEQ string = fmt.Sprintf("%s[%s]%s", RED_L_SEQ, FAIL_CHR, ANSI_RESET)
View Source
var GREEN_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_GREEN_L)
View Source
var GREEN_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_GREEN)
View Source
var INFO_SEQ string = fmt.Sprintf("%s[%s]%s", BLUE_L_SEQ, INFO_CHR, ANSI_RESET)
View Source
var RED_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_RED_L)
View Source
var SUCCESS_SEQ string = fmt.Sprintf("%s[%s]%s", GREEN_L_SEQ, SUCCESS_CHR, ANSI_RESET)
View Source
var SYS_SEQ string = fmt.Sprintf("%s[%s]%s", YELLOW_L_SEQ, SYS_CHR, ANSI_RESET)
View Source
var WARNING_SEQ string = fmt.Sprintf("%s[%s]%s", YELLOW_L_SEQ, WARNING_CHR, ANSI_RESET)
View Source
var YELLOW_L_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_YELLOW_L)
View Source
var YELLOW_SEQ string = fmt.Sprintf("%s%d;1m", CSI, ANSI_YELLOW)
Functions ¶
This section is empty.
Types ¶
type Outputter ¶
type Outputter struct{}
func NewOutputter ¶
function designed to create and return a new outputter object that can be used later on.
Click to show internal directories.
Click to hide internal directories.