formatter

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: 0BSD Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fcolor = 1 << iota
	ForiginsOnly
	ForiginsSingleLine
	FstripRoot

	Fdefaults = FstripRoot
)
View Source
const DefaultColors = "BCDA"

Variables

This section is empty.

Functions

func SetColors added in v1.3.0

func SetColors(c string)

Types

type Formatter

type Formatter interface {
	SetIndent(indent string)
	Format(path string, matches grep.Results) error
}

func NewText

func NewText(w io.Writer, root string, flags int) Formatter

Jump to

Keyboard shortcuts

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