Documentation ¶
Overview ¶
Package io contains helper functions related to io This file contains an interface to print output to io in various colors and modes
Index ¶
- Constants
- func CopyQueue(fromQueue *Queue, toQueue *Queue, spaces string)
- func DisableWarnings()
- func Init()
- func IsVerbose() bool
- func PrintQueue(queue *Queue, spaces string)
- func QueueWrite(queue *Queue, logType string, providedColor *color.Color, message string, ...)
- func QueueWriteln(queue *Queue, logType string, providedColor *color.Color, message string, ...)
- func SetVerbose()
- func Write(logType string, providedColor *color.Color, message string, a ...interface{}) bool
- func WriteErrorAndPrompt(err error, logType string, promptRightAnswer string, caseSensitive bool)
- func WriteErrorln(err error, isWarning bool)
- func WriteErrorlnExit(err error)
- func Writeln(logType string, providedColor *color.Color, message string, a ...interface{}) bool
- type Queue
Constants ¶
View Source
const ( NO_SPACES = "" TWO_SPACES = " " FOUR_SPACES = " " SIX_SPACES = " " EIGHT_SPACES = " " )
View Source
const ( VERB_NONE = "VERB_NONE" // Does not Show INFO tag in verbose mode (only activates in verbose mode) INFO_NONE = "INFO_NONE" // Only Shows text in Verbose mode NONE = "NONE" // Does not show INFO tag in regular mode INFO = "INFO" // Shows like a normal text in regular mode and INFO tag in verbose mode VERB = "VERB" ERR = "ERR" WARN = "WARN" )
Variables ¶
This section is empty.
Functions ¶
func QueueWrite ¶
func QueueWrite(queue *Queue, logType string, providedColor *color.Color, message string, a ...interface{})
Write Queue
func QueueWriteln ¶
func QueueWriteln(queue *Queue, logType string, providedColor *color.Color, message string, a ...interface{})
Writeln Queue
func SetVerbose ¶
func SetVerbose()
Turns verbose mode on. This is the mode when Verbose functions work
func WriteErrorAndPrompt ¶
Record error/warning to stderr and prompts user for a choice and based on that decides to exists or not
func WriteErrorln ¶
Record error/warning to stderr and prints a new line
func WriteErrorlnExit ¶
func WriteErrorlnExit(err error)
Record error to stderr and prints a new line. It also exists the program with an error code
Types ¶
Click to show internal directories.
Click to hide internal directories.