Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(results []error) (string, error)
}

type JSONFormatter

type JSONFormatter struct{}

func NewJSONFormatter

func NewJSONFormatter() *JSONFormatter

func (*JSONFormatter) Format

func (f *JSONFormatter) Format(results []error) (string, error)

type SummaryFormatter added in v1.17.0

type SummaryFormatter struct{}

SummaryFormatter formats results as a per-rule summary table.

func NewSummaryFormatter added in v1.17.0

func NewSummaryFormatter() *SummaryFormatter

NewSummaryFormatter creates a new SummaryFormatter.

func (*SummaryFormatter) Format added in v1.17.0

func (f *SummaryFormatter) Format(results []error) (string, error)

Format outputs a per-rule summary table sorted by count descending.

type TextFormatter

type TextFormatter struct{}

func NewTextFormatter

func NewTextFormatter() *TextFormatter

func (*TextFormatter) Format

func (f *TextFormatter) Format(results []error) (string, error)

Jump to

Keyboard shortcuts

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