writer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableWriter

type TableWriter struct {
	Verbose bool
}

TableWriter formats the Linters output in an ASCII table format

func (TableWriter) WriteUpdates

func (t TableWriter) WriteUpdates(ctx context.Context, w io.Writer, input <-chan linter.Result) error

WriteUpdates write Linters results in ASCII table format to the given io.Writer

type TextWriter

type TextWriter struct {
	Verbose bool
	NoColor bool
}

TextWriter writes Linters results in text format

func (TextWriter) WriteUpdates

func (t TextWriter) WriteUpdates(ctx context.Context, w io.Writer, results <-chan linter.Result) error

WriteUpdates writes Linters results in Text format to the given io.Writer

type Writer

type Writer interface {
	WriteUpdates(ctx context.Context, output io.Writer, input <-chan linter.Result) error
}

Writer writes Linters results to a given output in a structured format

Jump to

Keyboard shortcuts

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