format

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package format provides formatters for linter problems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(p lint.Problem)
}

type JSON

type JSON struct {
	W io.Writer
}

func (JSON) Format

func (o JSON) Format(p lint.Problem)

type Statter

type Statter interface {
	Stats(total, errors, warnings int)
}

type Stylish

type Stylish struct {
	W io.Writer
	// contains filtered or unexported fields
}

func (*Stylish) Format

func (o *Stylish) Format(p lint.Problem)

func (*Stylish) Stats

func (o *Stylish) Stats(total, errors, warnings int)

type Text

type Text struct {
	W io.Writer
}

func (Text) Format

func (o Text) Format(p lint.Problem)

Jump to

Keyboard shortcuts

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