Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsColorDisabled = DisableColors()
Functions ¶
func Color ¶ added in v3.14.1
Color is a wrapper around ansi.Color that respects the NO_COLOR environment variable
func ColorForWriter ¶ added in v3.16.12
ColorForWriter colors s only when w is connected to a terminal.
func DisableColors ¶ added in v3.14.1
func DisableColors() bool
func WriterSupportsColor ¶ added in v3.16.12
WriterSupportsColor reports whether w is connected to a terminal that can display ANSI colors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.