Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkstyle ¶
type Checkstyle struct {
Metadata lint.FormatterMetadata
}
Checkstyle is an implementation of the Formatter interface which formats the errors to Checkstyle-like format.
type Default ¶
type Default struct {
Metadata lint.FormatterMetadata
}
Default is an implementation of the Formatter interface which formats the errors to text.
type Friendly ¶
type Friendly struct {
Metadata lint.FormatterMetadata
}
Friendly is an implementation of the Formatter interface which formats the errors to JSON.
type JSON ¶
type JSON struct {
Metadata lint.FormatterMetadata
}
JSON is an implementation of the Formatter interface which formats the errors to JSON.
type NDJSON ¶
type NDJSON struct {
Metadata lint.FormatterMetadata
}
NDJSON is an implementation of the Formatter interface which formats the errors to NDJSON stream.
type Plain ¶
type Plain struct {
Metadata lint.FormatterMetadata
}
Plain is an implementation of the Formatter interface which formats the errors to JSON.
type Stylish ¶
type Stylish struct {
Metadata lint.FormatterMetadata
}
Stylish is an implementation of the Formatter interface which formats the errors to JSON.
type Unix ¶
type Unix struct {
Metadata lint.FormatterMetadata
}
Unix is an implementation of the Formatter interface which formats the errors to a simple line based error format
main.go:24:9: [errorf] should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)