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, ignored 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, ignored 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.1-2020.1.5
Published
Jul 30, 2020
Platform
windows/amd64
Imports
8 packages
Last checked
10 minutes ago

Tools for package owners.