output

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FmtOutputHandler

type FmtOutputHandler struct {
	Logger       *log.Logger
	ErrorLogger  *log.Logger
	Ok           string
	Ko           string
	OkColor      func(a ...interface{}) string
	KoColor      func(a ...interface{}) string
	PrintContext bool
}

func NewFmtOutputHandler

func NewFmtOutputHandler(colored, printContext bool) *FmtOutputHandler

func (*FmtOutputHandler) AddMatches

func (f *FmtOutputHandler) AddMatches(path string, matches []*model.Match)

func (*FmtOutputHandler) AddPathError

func (f *FmtOutputHandler) AddPathError(path string, e error)

Jump to

Keyboard shortcuts

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