Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecoratorFactory ¶
type DecoratorFactory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(forceColors bool) DecoratorFactory
func (*DecoratorFactory) NewDecorator ¶
func (f *DecoratorFactory) NewDecorator(attributes ...color.Attribute) func(a ...interface{}) string
NewDecorator returns a Sprintf-like function that applies the attributes to the formatted string.
Click to show internal directories.
Click to hide internal directories.