Documentation ¶ Index ¶ func WithStyle(styles func(string) (style.Style, error)) func(*Formatter) type Formatter func Ansi() *Formatter func New(opts ...func(*Formatter)) *Formatter func None() *Formatter func (a *Formatter) Format(ctx context.Context, msg string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WithStyle ¶ func WithStyle(styles func(string) (style.Style, error)) func(*Formatter) Types ¶ type Formatter ¶ type Formatter struct { // contains filtered or unexported fields } func Ansi ¶ func Ansi() *Formatter func New ¶ func New(opts ...func(*Formatter)) *Formatter func None ¶ func None() *Formatter func (*Formatter) Format ¶ func (a *Formatter) Format(ctx context.Context, msg string) string Source Files ¶ View all Source files ansi.go formatter.go none.go Click to show internal directories. Click to hide internal directories.