package format

import "honnef.co/go/tools/lint/lintutil/format"

Package format provides formatters for linter problems.

Index

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)

Source Files

format.go

Version
v0.0.0-2019.2.1
Published
Jun 27, 2019
Platform
darwin/amd64
Imports
8 packages
Last checked
30 minutes ago

Tools for package owners.