formatter

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(string) (string, bool)
}

Formatter defines the interface for a formatter that takes a string and attempts to reformat/colorize it. Formatters return the formatted string and a boolean indicating whether formatting succeeded.

type List

type List []Formatter

List defines a slice of Formatters.

Directories

Path Synopsis
Convert from caddy's structured JSON to combined log format
Convert from caddy's structured JSON to combined log format

Jump to

Keyboard shortcuts

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