formatter

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() []string

List returns the list of parsers.

Types

type Formatter

type Formatter interface {
	Format(io.Writer, []*Violation) error
}

func For

func For(ctx context.Context, name string) (Formatter, error)

For returns the parser that corresponds to the given name.

type FormatterFunc

type FormatterFunc func(io.Writer, []*Violation) error

FormatterFunc is a function that implements the Formatter interface.

func (FormatterFunc) Format

func (f FormatterFunc) Format(w io.Writer, v []*Violation) error

Format implements the Formatter interface.

type Violation

type Violation = linter.Violation

Jump to

Keyboard shortcuts

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