Versions in this module Expand all Collapse all v1 v1.15.1 Jun 4, 2023 Changes in this version + var Error = colorable.NewColorableStderr() + var NoColor = ... + var Output = colorable.NewColorableStdout() + func Black(format string, a ...interface{}) + func BlackString(format string, a ...interface{}) string + func Blue(format string, a ...interface{}) + func BlueString(format string, a ...interface{}) string + func Cyan(format string, a ...interface{}) + func CyanString(format string, a ...interface{}) string + func Green(format string, a ...interface{}) + func GreenString(format string, a ...interface{}) string + func HiBlack(format string, a ...interface{}) + func HiBlackString(format string, a ...interface{}) string + func HiBlue(format string, a ...interface{}) + func HiBlueString(format string, a ...interface{}) string + func HiCyan(format string, a ...interface{}) + func HiCyanString(format string, a ...interface{}) string + func HiGreen(format string, a ...interface{}) + func HiGreenString(format string, a ...interface{}) string + func HiMagenta(format string, a ...interface{}) + func HiMagentaString(format string, a ...interface{}) string + func HiRed(format string, a ...interface{}) + func HiRedString(format string, a ...interface{}) string + func HiWhite(format string, a ...interface{}) + func HiWhiteString(format string, a ...interface{}) string + func HiYellow(format string, a ...interface{}) + func HiYellowString(format string, a ...interface{}) string + func Magenta(format string, a ...interface{}) + func MagentaString(format string, a ...interface{}) string + func Red(format string, a ...interface{}) + func RedString(format string, a ...interface{}) string + func Unset() + func White(format string, a ...interface{}) + func WhiteString(format string, a ...interface{}) string + func Yellow(format string, a ...interface{}) + func YellowString(format string, a ...interface{}) string + type Attribute int + const BgBlack + const BgBlue + const BgCyan + const BgGreen + const BgHiBlack + const BgHiBlue + const BgHiCyan + const BgHiGreen + const BgHiMagenta + const BgHiRed + const BgHiWhite + const BgHiYellow + const BgMagenta + const BgRed + const BgWhite + const BgYellow + const BlinkRapid + const BlinkSlow + const Bold + const Concealed + const CrossedOut + const Faint + const FgBlack + const FgBlue + const FgCyan + const FgGreen + const FgHiBlack + const FgHiBlue + const FgHiCyan + const FgHiGreen + const FgHiMagenta + const FgHiRed + const FgHiWhite + const FgHiYellow + const FgMagenta + const FgRed + const FgWhite + const FgYellow + const Italic + const Reset + const ReverseVideo + const Underline + type Color struct + func New(value ...Attribute) *Color + func Set(p ...Attribute) *Color + func (c *Color) Add(value ...Attribute) *Color + func (c *Color) DisableColor() + func (c *Color) EnableColor() + func (c *Color) Equals(c2 *Color) bool + func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) + func (c *Color) FprintFunc() func(w io.Writer, a ...interface{}) + func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) + func (c *Color) FprintfFunc() func(w io.Writer, format string, a ...interface{}) + func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) + func (c *Color) FprintlnFunc() func(w io.Writer, a ...interface{}) + func (c *Color) Print(a ...interface{}) (n int, err error) + func (c *Color) PrintFunc() func(a ...interface{}) + func (c *Color) Printf(format string, a ...interface{}) (n int, err error) + func (c *Color) PrintfFunc() func(format string, a ...interface{}) + func (c *Color) Println(a ...interface{}) (n int, err error) + func (c *Color) PrintlnFunc() func(a ...interface{}) + func (c *Color) Set() *Color + func (c *Color) SetWriter(w io.Writer) *Color + func (c *Color) Sprint(a ...interface{}) string + func (c *Color) SprintFunc() func(a ...interface{}) string + func (c *Color) Sprintf(format string, a ...interface{}) string + func (c *Color) SprintfFunc() func(format string, a ...interface{}) string + func (c *Color) Sprintln(a ...interface{}) string + func (c *Color) SprintlnFunc() func(a ...interface{}) string + func (c *Color) UnsetWriter(w io.Writer)