Documentation ¶
Index ¶
- Constants
- func Black(message string) string
- func BlackBold(message string) string
- func Blue(message string) string
- func BlueBold(message string) string
- func Bold(message string) string
- func Cyan(message string) string
- func CyanBold(message string) string
- func Gray(message string) string
- func GrayBold(message string) string
- func Green(message string) string
- func GreenBold(message string) string
- func Magenta(message string) string
- func MagentaBold(message string) string
- func NewColorWriter(w io.Writer) io.Writer
- func NewModeColorWriter(w io.Writer, mode outputMode) io.Writer
- func Red(message string) string
- func RedBold(message string) string
- func White(message string) string
- func WhiteBold(message string) string
- func Yellow(message string) string
- func YellowBold(message string) string
Constants ¶
const ( DiscardNonColorEscSeq outputMode OutputNonColorEscSeq )
DiscardNonColorEscSeq supports the divided color escape sequence. But non-color escape sequence is not output. Please use the OutputNonColorEscSeq If you want to output a non-color escape sequences such as ncurses. However, it does not support the divided color escape sequence.
Variables ¶
This section is empty.
Functions ¶
func MagentaBold ¶
MagentaBold returns a magenta Bold string
func NewColorWriter ¶
NewColorWriter creates and initializes a new ansiColorWriter using io.Writer w as its initial contents. In the console of Windows, which change the foreground and background colors of the text by the escape sequence. In the console of other systems, which writes to w all text.
func NewModeColorWriter ¶
NewModeColorWriter create and initializes a new ansiColorWriter by specifying the outputMode.
Types ¶
This section is empty.