File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
11
11
github.com/Antonboom/nilnil v0.1.5
12
12
github.com/BurntSushi/toml v1.3.2
13
13
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
14
- github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3 .0
14
+ github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1 .0
15
15
github.com/OpenPeeDeeP/depguard/v2 v2.1.0
16
16
github.com/alexkohler/nakedret/v2 v2.0.2
17
17
github.com/alexkohler/prealloc v1.0.0
Original file line number Diff line number Diff line change 1
1
package golinters
2
2
3
3
import (
4
- "github.com/GaijinEntertainment/go-exhaustruct/v2/pkg /analyzer"
4
+ "github.com/GaijinEntertainment/go-exhaustruct/v3 /analyzer"
5
5
"golang.org/x/tools/go/analysis"
6
6
7
7
"github.com/golangci/golangci-lint/pkg/config"
Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ func exhaustruct() {
22
22
}
23
23
24
24
// failPrivate
25
- _ = Exhaustruct { // want "c is missing in Exhaustruct "
25
+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing field c "
26
26
A : "a" ,
27
27
B : 0 ,
28
28
D : 1.0 ,
29
29
E : time .Now (),
30
30
}
31
31
32
32
// fail
33
- _ = Exhaustruct { // want "B is missing in Exhaustruct "
33
+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing field B "
34
34
A : "a" ,
35
35
c : false ,
36
36
D : 1.0 ,
37
37
E : time .Now (),
38
38
}
39
39
40
40
// failMultiple
41
- _ = Exhaustruct { // want "B, D are missing in Exhaustruct "
41
+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing fields B, D "
42
42
A : "a" ,
43
43
c : false ,
44
44
E : time .Now (),
You can’t perform that action at this time.
0 commit comments