Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsColor ¶
IsColor returns whether color should be enabled. It will only return true when:
- The NO_COLOR env is empty or unset
- The TERM env does not equal "dumb"
- The given io.Writer is a terminal
func IsTerminal ¶
IsTerminal returns whether the given io.Writer is a terminal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.