printers

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type JSON

type JSON struct{}

func NewJSON

func NewJSON() *JSON

func (JSON) Print

func (JSON) Print(ctx context.Context, issues <-chan result.Issue) (bool, error)

type JSONResult added in v1.6.1

type JSONResult struct {
	Issues []result.Issue
}

type Printer

type Printer interface {
	Print(ctx context.Context, issues <-chan result.Issue) (bool, error)
}

type Tab added in v1.4.1

type Tab struct {
	// contains filtered or unexported fields
}

func NewTab added in v1.4.1

func NewTab(printLinterName bool) *Tab

func (*Tab) Print added in v1.4.1

func (p *Tab) Print(ctx context.Context, issues <-chan result.Issue) (bool, error)

func (Tab) SprintfColored added in v1.4.1

func (p Tab) SprintfColored(ca color.Attribute, format string, args ...interface{}) string

type Text

type Text struct {
	// contains filtered or unexported fields
}

func NewText

func NewText(printIssuedLine, useColors, printLinterName bool) *Text

func (*Text) Print

func (p *Text) Print(ctx context.Context, issues <-chan result.Issue) (bool, error)

func (Text) SprintfColored

func (p Text) SprintfColored(ca color.Attribute, format string, args ...interface{}) string

Jump to

Keyboard shortcuts

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