Documentation
¶
Index ¶
- Variables
- func StringBlack(format string, a ...interface{}) string
- func StringBlackH(format string, a ...interface{}) string
- func StringBlue(format string, a ...interface{}) string
- func StringBlueH(format string, a ...interface{}) string
- func StringCyan(format string, a ...interface{}) string
- func StringCyanH(format string, a ...interface{}) string
- func StringGreen(format string, a ...interface{}) string
- func StringGreenH(format string, a ...interface{}) string
- func StringMagenta(format string, a ...interface{}) string
- func StringMagentaH(format string, a ...interface{}) string
- func StringRed(format string, a ...interface{}) string
- func StringRedH(format string, a ...interface{}) string
- func StringWhite(format string, a ...interface{}) string
- func StringWhiteH(format string, a ...interface{}) string
- func StringYellow(format string, a ...interface{}) string
- func StringYellowH(format string, a ...interface{}) string
- type TAttribute
- type TStColorTerm
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IoOutput = colorable.NewColorableStdout() IoError = colorable.NewColorableStderr() )
Functions ¶
func StringBlack ¶
func StringBlackH ¶
func StringBlue ¶
func StringBlueH ¶
func StringCyan ¶
func StringCyanH ¶
func StringGreen ¶
func StringGreenH ¶
func StringMagenta ¶
func StringMagentaH ¶
func StringRedH ¶
func StringWhite ¶
func StringWhiteH ¶
func StringYellow ¶
func StringYellowH ¶
Types ¶
type TAttribute ¶
type TAttribute int
const ( Reset TAttribute = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Concealed CrossedOut )
Attributes
const ( ResetBold TAttribute = iota + 22 ResetItalic ResetUnderline ResetBlinking ResetReversed ResetConcealed ResetCrossedOut )
const ( Black TAttribute = iota + 30 Red Green Yellow Blue Magenta Cyan White )
Text colors
const ( BlackH TAttribute = iota + 90 RedH GreenH YellowH BlueH MagentaH CyanH WhiteH )
Hi-Intensity text colors
type TStColorTerm ¶
type TStColorTerm struct {
// contains filtered or unexported fields
}
func NewCT ¶
func NewCT(value ...TAttribute) *TStColorTerm
func (*TStColorTerm) AddAttr ¶
func (ct *TStColorTerm) AddAttr(value ...TAttribute) *TStColorTerm
func (*TStColorTerm) FSprint ¶
func (ct *TStColorTerm) FSprint() func(a ...interface{}) string
func (*TStColorTerm) FSprintf ¶
func (ct *TStColorTerm) FSprintf() func(format string, a ...interface{}) string
Click to show internal directories.
Click to hide internal directories.