Documentation
¶
Overview ¶
Package colors is an indirection to handle colorized output.
This package allows the builder to override the indirection with an alternative implementation of colorized printers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable(enabler func() []Option)
Enable registers colorized options for pretty-printing the output of assertions.
The provided enabler defers the initialization, so we may retrieve flags after command line parsing or other initialization tasks.
This is not intended for concurrent use.
Types ¶
type Option ¶
Option is a colorization option.
func WithSanitizedTheme ¶
WithSanitizedTheme sets a colorization theme from a string.
Click to show internal directories.
Click to hide internal directories.