File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
1111 github.com/Antonboom/nilnil v0.1.5
1212 github.com/BurntSushi/toml v1.3.2
1313 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
1515 github.com/OpenPeeDeeP/depguard/v2 v2.1.0
1616 github.com/alexkohler/nakedret/v2 v2.0.2
1717 github.com/alexkohler/prealloc v1.0.0
Original file line number Diff line number Diff line change 11package golinters
22
33import (
4- "github.com/GaijinEntertainment/go-exhaustruct/v2/pkg /analyzer"
4+ "github.com/GaijinEntertainment/go-exhaustruct/v3 /analyzer"
55 "golang.org/x/tools/go/analysis"
66
77 "github.com/golangci/golangci-lint/pkg/config"
Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ func exhaustruct() {
2222 }
2323
2424 // failPrivate
25- _ = Exhaustruct { // want "c is missing in Exhaustruct "
25+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing field c "
2626 A : "a" ,
2727 B : 0 ,
2828 D : 1.0 ,
2929 E : time .Now (),
3030 }
3131
3232 // fail
33- _ = Exhaustruct { // want "B is missing in Exhaustruct "
33+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing field B "
3434 A : "a" ,
3535 c : false ,
3636 D : 1.0 ,
3737 E : time .Now (),
3838 }
3939
4040 // failMultiple
41- _ = Exhaustruct { // want "B, D are missing in Exhaustruct "
41+ _ = Exhaustruct { // want "testdata.Exhaustruct is missing fields B, D "
4242 A : "a" ,
4343 c : false ,
4444 E : time .Now (),
Original file line number Diff line number Diff line change @@ -23,22 +23,22 @@ func exhaustructCustom() {
2323 }
2424
2525 // fail
26- _ = ExhaustructCustom { // want "B is missing in ExhaustructCustom "
26+ _ = ExhaustructCustom { // want "testdata.ExhaustructCustom is missing field B "
2727 A : "a" ,
2828 c : false ,
2929 D : 1.0 ,
3030 E : time .Now (),
3131 }
3232
3333 // failMultiple
34- _ = ExhaustructCustom { // want "B, D are missing in ExhaustructCustom "
34+ _ = ExhaustructCustom { // want "testdata.ExhaustructCustom is missing fields B, D "
3535 A : "a" ,
3636 c : false ,
3737 E : time .Now (),
3838 }
3939
4040 // failPrivate
41- _ = ExhaustructCustom { // want "c is missing in ExhaustructCustom "
41+ _ = ExhaustructCustom { // want "testdata.ExhaustructCustom is missing field c "
4242 A : "a" ,
4343 B : 0 ,
4444 D : 1.0 ,
You can’t perform that action at this time.
0 commit comments