Documentation
¶
Index ¶
Constants ¶
View Source
const ( NewLine = "\n" InfoColor = ansiPrefix + "1;34m" NoticeColor = ansiPrefix + "1;36m" WarningColor = ansiPrefix + "1;33m" ErrorColor = ansiPrefix + "1;31m" DebugColor = ansiPrefix + "0;36m" DbColor = ansiPrefix + "1;31m" // ANSI dbecho code ResetColor = ansiPrefix + "0m" // ANSI reset code )
Variables ¶
View Source
var DEBUG bool = true // debug or DEV mode
Functions ¶
func NewAnsiString ¶
NewAnsi creates a new ansi color code string from components. Each argument is parsed and encoded and wrapped in an ANSI
Types ¶
type AnsiConstraint ¶
type AnsiConstraint interface { ~string | constraints.Integer // | []byte }
type Ansier ¶
type Ansier interface { String() string printer.Fprinter // test methods ... Fprintf1(w io.Writer, format string, args ...interface{}) (n int, err error) Fprintf2(w io.Writer, format string, args ...interface{}) (n int, err error) Fprintf3(w io.Writer, format string, args ...interface{}) (n int, err error) }
Click to show internal directories.
Click to hide internal directories.