colors

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL