formatter

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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