build(deps): bump github.com/junk1tm/musttag from 0.4.5 to 0.5.0 (#3624)
This commit is contained in:
parent
610a2bd199
commit
ca5738e1fe
2
go.mod
2
go.mod
@ -52,7 +52,7 @@ require (
|
||||
github.com/jingyugao/rowserrcheck v1.1.1
|
||||
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af
|
||||
github.com/julz/importas v0.1.0
|
||||
github.com/junk1tm/musttag v0.4.5
|
||||
github.com/junk1tm/musttag v0.5.0
|
||||
github.com/kisielk/errcheck v1.6.3
|
||||
github.com/kkHAIKE/contextcheck v1.1.3
|
||||
github.com/kulti/thelper v0.6.3
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -307,8 +307,8 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V
|
||||
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
||||
github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY=
|
||||
github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0=
|
||||
github.com/junk1tm/musttag v0.4.5 h1:d+mpJ1vn6WFEVKHwkgJiIedis1u/EawKOuUTygAUtCo=
|
||||
github.com/junk1tm/musttag v0.4.5/go.mod h1:XkcL/9O6RmD88JBXb+I15nYRl9W4ExhgQeCBEhfMC8U=
|
||||
github.com/junk1tm/musttag v0.5.0 h1:bV1DTdi38Hi4pG4OVWa7Kap0hi0o7EczuK6wQt9zPOM=
|
||||
github.com/junk1tm/musttag v0.5.0/go.mod h1:PcR7BA+oREQYvHwgjIDmw3exJeds5JzRcvEJTfjrA0M=
|
||||
github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8=
|
||||
github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw=
|
||||
github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=
|
||||
|
4
test/testdata/musttag.go
vendored
4
test/testdata/musttag.go
vendored
@ -8,12 +8,11 @@ import (
|
||||
|
||||
// builtin functions:
|
||||
func musttagJSON() {
|
||||
var user struct { // want `exported fields should be annotated with the "json" tag`
|
||||
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"
|
||||
Name string
|
||||
Email string `json:"email"`
|
||||
}
|
||||
json.Marshal(user)
|
||||
json.Unmarshal(nil, &user)
|
||||
}
|
||||
|
||||
// custom functions from config:
|
||||
@ -23,5 +22,4 @@ func musttagASN1() {
|
||||
Email string `asn1:"email"`
|
||||
}
|
||||
asn1.Marshal(user)
|
||||
asn1.Unmarshal(nil, &user)
|
||||
}
|
||||
|
6
test/testdata/musttag_custom.go
vendored
6
test/testdata/musttag_custom.go
vendored
@ -9,20 +9,18 @@ import (
|
||||
|
||||
// builtin functions:
|
||||
func musttagJSONCustom() {
|
||||
var user struct { // want `exported fields should be annotated with the "json" tag`
|
||||
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"
|
||||
Name string
|
||||
Email string `json:"email"`
|
||||
}
|
||||
json.Marshal(user)
|
||||
json.Unmarshal(nil, &user)
|
||||
}
|
||||
|
||||
// custom functions from config:
|
||||
func musttagASN1Custom() {
|
||||
var user struct { // want `exported fields should be annotated with the "asn1" tag`
|
||||
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"
|
||||
Name string
|
||||
Email string `asn1:"email"`
|
||||
}
|
||||
asn1.Marshal(user)
|
||||
asn1.Unmarshal(nil, &user)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user