Skip to content

Commit 3e7722e

Browse files
committed
chore(deps): bump musttag to v0.5.0
1 parent 6c21f04 commit 3e7722e

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ require (
5252
github.com/jingyugao/rowserrcheck v1.1.1
5353
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af
5454
github.com/julz/importas v0.1.0
55-
github.com/junk1tm/musttag v0.4.5
55+
github.com/junk1tm/musttag v0.5.0
5656
github.com/kisielk/errcheck v1.6.3
5757
github.com/kkHAIKE/contextcheck v1.1.3
5858
github.com/kulti/thelper v0.6.3

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/musttag.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ import (
88

99
// builtin functions:
1010
func musttagJSON() {
11-
var user struct { // want `exported fields should be annotated with the "json" tag`
11+
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test/testdata/musttag.go:15:2"
1212
Name string
1313
Email string `json:"email"`
1414
}
1515
json.Marshal(user)
16-
json.Unmarshal(nil, &user)
1716
}
1817

1918
// custom functions from config:
@@ -23,5 +22,4 @@ func musttagASN1() {
2322
Email string `asn1:"email"`
2423
}
2524
asn1.Marshal(user)
26-
asn1.Unmarshal(nil, &user)
2725
}

test/testdata/musttag_custom.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@ import (
99

1010
// builtin functions:
1111
func musttagJSONCustom() {
12-
var user struct { // want `exported fields should be annotated with the "json" tag`
12+
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test/testdata/musttag_custom.go:16:2"
1313
Name string
1414
Email string `json:"email"`
1515
}
1616
json.Marshal(user)
17-
json.Unmarshal(nil, &user)
1817
}
1918

2019
// custom functions from config:
2120
func musttagASN1Custom() {
22-
var user struct { // want `exported fields should be annotated with the "asn1" tag`
21+
var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at test/testdata/musttag_custom.go:25:2"
2322
Name string
2423
Email string `asn1:"email"`
2524
}
2625
asn1.Marshal(user)
27-
asn1.Unmarshal(nil, &user)
2826
}

0 commit comments

Comments
 (0)