error-type-naming
Default severity: warning
Named types whose value or pointer method set implements error should end in
Error, making their role recognizable at API boundaries and in type
assertions.
type ParseFailure struct { Offset int}
func (ParseFailure) Error() string { return "parse failed" }type ParseError struct { Offset int}
func (ParseError) Error() string { return "parse failed" }