@@ -11,11 +11,11 @@ var (
11
11
ErrEndOfFile = errors .New ("end of file" )
12
12
errEndOfFile = errors .New ("end of file" )
13
13
14
- EndOfFileError = errors .New ("end of file" ) // want "the variable name `EndOfFileError` should conform to the `ErrXxx` format"
15
- ErrorEndOfFile = errors .New ("end of file" ) // want "the variable name `ErrorEndOfFile` should conform to the `ErrXxx` format"
16
- EndOfFileErr = errors .New ("end of file" ) // want "the variable name `EndOfFileErr` should conform to the `ErrXxx` format"
17
- endOfFileError = errors .New ("end of file" ) // want "the variable name `endOfFileError` should conform to the `errXxx` format"
18
- errorEndOfFile = errors .New ("end of file" ) // want "the variable name `errorEndOfFile` should conform to the `errXxx` format"
14
+ EndOfFileError = errors .New ("end of file" ) // want "the sentinel error name `EndOfFileError` should conform to the `ErrXxx` format"
15
+ ErrorEndOfFile = errors .New ("end of file" ) // want "the sentinel error name `ErrorEndOfFile` should conform to the `ErrXxx` format"
16
+ EndOfFileErr = errors .New ("end of file" ) // want "the sentinel error name `EndOfFileErr` should conform to the `ErrXxx` format"
17
+ endOfFileError = errors .New ("end of file" ) // want "the sentinel error name `endOfFileError` should conform to the `errXxx` format"
18
+ errorEndOfFile = errors .New ("end of file" ) // want "the sentinel error name `errorEndOfFile` should conform to the `errXxx` format"
19
19
)
20
20
21
21
const maxSize = 256
24
24
ErrOutOfSize = fmt .Errorf ("out of size (max %d)" , maxSize )
25
25
errOutOfSize = fmt .Errorf ("out of size (max %d)" , maxSize )
26
26
27
- OutOfSizeError = fmt .Errorf ("out of size (max %d)" , maxSize ) // want "the variable name `OutOfSizeError` should conform to the `ErrXxx` format"
28
- outOfSizeError = fmt .Errorf ("out of size (max %d)" , maxSize ) // want "the variable name `outOfSizeError` should conform to the `errXxx` format"
27
+ OutOfSizeError = fmt .Errorf ("out of size (max %d)" , maxSize ) // want "the sentinel error name `OutOfSizeError` should conform to the `ErrXxx` format"
28
+ outOfSizeError = fmt .Errorf ("out of size (max %d)" , maxSize ) // want "the sentinel error name `outOfSizeError` should conform to the `errXxx` format"
29
29
)
30
30
31
31
func errInsideFuncIsNotSentinel () error {
@@ -42,14 +42,14 @@ type DNSConfigError struct{}
42
42
43
43
func (D DNSConfigError ) Error () string { return "DNS config error" }
44
44
45
- type someTypeWithoutPtr struct {} // want "the type name `someTypeWithoutPtr` should conform to the `xxxError` format"
45
+ type someTypeWithoutPtr struct {} // want "the error type name `someTypeWithoutPtr` should conform to the `xxxError` format"
46
46
func (s someTypeWithoutPtr ) Error () string { return "someTypeWithoutPtr" }
47
47
48
- type SomeTypeWithoutPtr struct {} // want "the type name `SomeTypeWithoutPtr` should conform to the `XxxError` format"
48
+ type SomeTypeWithoutPtr struct {} // want "the error type name `SomeTypeWithoutPtr` should conform to the `XxxError` format"
49
49
func (s SomeTypeWithoutPtr ) Error () string { return "SomeTypeWithoutPtr" }
50
50
51
- type someTypeWithPtr struct {} // want "the type name `someTypeWithPtr` should conform to the `xxxError` format"
51
+ type someTypeWithPtr struct {} // want "the error type name `someTypeWithPtr` should conform to the `xxxError` format"
52
52
func (s * someTypeWithPtr ) Error () string { return "someTypeWithPtr" }
53
53
54
- type SomeTypeWithPtr struct {} // want "the type name `SomeTypeWithPtr` should conform to the `XxxError` format"
54
+ type SomeTypeWithPtr struct {} // want "the error type name `SomeTypeWithPtr` should conform to the `XxxError` format"
55
55
func (s * SomeTypeWithPtr ) Error () string { return "SomeTypeWithPtr" }
0 commit comments