formatter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format interface {
	// Writer Writer is abstract type that takes a search.Entry then writes to io.Writer
	Writer(io.Writer, <-chan *entry.Entry)
}

Format Format is a interface to format search entries.

type Standard added in v1.1.0

type Standard struct {
	// Disable ANSI Escape codes
	NoANSICodes bool
	// contains filtered or unexported fields
}

Standard Standard is the default formatter for search.Entry

func (*Standard) Writer added in v1.1.0

func (s *Standard) Writer(w io.Writer, ch <-chan *entry.Entry)

Writer format suitable for standard output

Jump to

Keyboard shortcuts

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