Documentation ¶
Index ¶
- type Color
- func (c *Color) Colorful(text string) string
- func (c *Color) Reset() *Color
- func (c *Color) SetBackBlack() *Color
- func (c *Color) SetBackBlue() *Color
- func (c *Color) SetBackColor256(color byte) *Color
- func (c *Color) SetBackColorRGB(r byte, g byte, b byte) *Color
- func (c *Color) SetBackCyan() *Color
- func (c *Color) SetBackGreen() *Color
- func (c *Color) SetBackLightBlack() *Color
- func (c *Color) SetBackLightBlue() *Color
- func (c *Color) SetBackLightCyan() *Color
- func (c *Color) SetBackLightGreen() *Color
- func (c *Color) SetBackLightMagenta() *Color
- func (c *Color) SetBackLightRed() *Color
- func (c *Color) SetBackLightWhite() *Color
- func (c *Color) SetBackLightYellow() *Color
- func (c *Color) SetBackMagenta() *Color
- func (c *Color) SetBackRed() *Color
- func (c *Color) SetBackWhite() *Color
- func (c *Color) SetBackYellow() *Color
- func (c *Color) SetFontBlink() *Color
- func (c *Color) SetFontBold() *Color
- func (c *Color) SetFontDel() *Color
- func (c *Color) SetFontHide() *Color
- func (c *Color) SetFontItalic() *Color
- func (c *Color) SetFontQuickBlink() *Color
- func (c *Color) SetFontReverse() *Color
- func (c *Color) SetFontUnderline() *Color
- func (c *Color) SetFontWeak() *Color
- func (c *Color) SetFrontBlack() *Color
- func (c *Color) SetFrontBlue() *Color
- func (c *Color) SetFrontColor256(color byte) *Color
- func (c *Color) SetFrontColorRGB(r byte, g byte, b byte) *Color
- func (c *Color) SetFrontCyan() *Color
- func (c *Color) SetFrontGreen() *Color
- func (c *Color) SetFrontLightBlack() *Color
- func (c *Color) SetFrontLightBlue() *Color
- func (c *Color) SetFrontLightCyan() *Color
- func (c *Color) SetFrontLightGreen() *Color
- func (c *Color) SetFrontLightMagenta() *Color
- func (c *Color) SetFrontLightRed() *Color
- func (c *Color) SetFrontLightWhite() *Color
- func (c *Color) SetFrontLightYellow() *Color
- func (c *Color) SetFrontMagenta() *Color
- func (c *Color) SetFrontRed() *Color
- func (c *Color) SetFrontWhite() *Color
- func (c *Color) SetFrontYellow() *Color
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
Color surround with color
func (*Color) SetBackBlack ¶
SetLightBackBlack set the background color to light {.name}
func (*Color) SetBackBlue ¶
SetLightBackBlue set the background color to light {.name}
func (*Color) SetBackColor256 ¶
SetBackColor256 set the background color using 256-bit color, not all terminals support
func (*Color) SetBackColorRGB ¶
SetBackColorRGB set the background color using rgb color, not all terminals support
func (*Color) SetBackCyan ¶
SetLightBackCyan set the background color to light {.name}
func (*Color) SetBackGreen ¶
SetLightBackGreen set the background color to light {.name}
func (*Color) SetBackLightBlack ¶
SetLightBackBlack set the background color to light {.name}
func (*Color) SetBackLightBlue ¶
SetLightBackBlue set the background color to light {.name}
func (*Color) SetBackLightCyan ¶
SetLightBackCyan set the background color to light {.name}
func (*Color) SetBackLightGreen ¶
SetLightBackGreen set the background color to light {.name}
func (*Color) SetBackLightMagenta ¶
SetLightBackMagenta set the background color to light {.name}
func (*Color) SetBackLightRed ¶
SetLightBackRed set the background color to light {.name}
func (*Color) SetBackLightWhite ¶
SetLightBackWhite set the background color to light {.name}
func (*Color) SetBackLightYellow ¶
SetLightBackYellow set the background color to light {.name}
func (*Color) SetBackMagenta ¶
SetLightBackMagenta set the background color to light {.name}
func (*Color) SetBackRed ¶
SetLightBackRed set the background color to light {.name}
func (*Color) SetBackWhite ¶
SetLightBackWhite set the background color to light {.name}
func (*Color) SetBackYellow ¶
SetLightBackYellow set the background color to light {.name}
func (*Color) SetFontBlink ¶
SetFontBlink set the font to blink, not all terminals support
func (*Color) SetFontBold ¶
SetFontBold set the font to bold, not all terminals support
func (*Color) SetFontDel ¶
SetFontDel set the font to del, not all terminals support
func (*Color) SetFontHide ¶
SetFontHide set the font to hide, not all terminals support
func (*Color) SetFontItalic ¶
SetFontItalic set the font to italic, not all terminals support
func (*Color) SetFontQuickBlink ¶
SetFontQuickBlink set the font to quickBlink, not all terminals support
func (*Color) SetFontReverse ¶
SetFontReverse set the font to reverse, not all terminals support
func (*Color) SetFontUnderline ¶
SetFontUnderline set the font to underline, not all terminals support
func (*Color) SetFontWeak ¶
SetFontWeak set the font to weak, not all terminals support
func (*Color) SetFrontBlack ¶
SetFrontBlack set the front color to {.name}
func (*Color) SetFrontBlue ¶
SetFrontBlue set the front color to {.name}
func (*Color) SetFrontColor256 ¶
SetFrontColor256 set the front color using 256-bit color, not all terminals support
func (*Color) SetFrontColorRGB ¶
SetFrontColorRGB set the front color using rgb color, not all terminals support
func (*Color) SetFrontCyan ¶
SetFrontCyan set the front color to {.name}
func (*Color) SetFrontGreen ¶
SetFrontGreen set the front color to {.name}
func (*Color) SetFrontLightBlack ¶
SetLightFrontBlack set the front color to light {.name}
func (*Color) SetFrontLightBlue ¶
SetLightFrontBlue set the front color to light {.name}
func (*Color) SetFrontLightCyan ¶
SetLightFrontCyan set the front color to light {.name}
func (*Color) SetFrontLightGreen ¶
SetLightFrontGreen set the front color to light {.name}
func (*Color) SetFrontLightMagenta ¶
SetLightFrontMagenta set the front color to light {.name}
func (*Color) SetFrontLightRed ¶
SetLightFrontRed set the front color to light {.name}
func (*Color) SetFrontLightWhite ¶
SetLightFrontWhite set the front color to light {.name}
func (*Color) SetFrontLightYellow ¶
SetLightFrontYellow set the front color to light {.name}
func (*Color) SetFrontMagenta ¶
SetFrontMagenta set the front color to {.name}
func (*Color) SetFrontRed ¶
SetFrontRed set the front color to {.name}
func (*Color) SetFrontWhite ¶
SetFrontWhite set the front color to {.name}
func (*Color) SetFrontYellow ¶
SetFrontYellow set the front color to {.name}