From ca5738e1fe07ab6ea3bc7475d9cb37f4a80503e7 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 23 Feb 2023 18:45:03 +0400 Subject: [PATCH] build(deps): bump github.com/junk1tm/musttag from 0.4.5 to 0.5.0 (#3624) --- go.mod | 2 +- go.sum | 4 ++-- test/testdata/musttag.go | 4 +--- test/testdata/musttag_custom.go | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 5be43c88..c5078cfd 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index db4af529..0c337e8f 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/test/testdata/musttag.go b/test/testdata/musttag.go index daf84298..d091fee1 100644 --- a/test/testdata/musttag.go +++ b/test/testdata/musttag.go @@ -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) } diff --git a/test/testdata/musttag_custom.go b/test/testdata/musttag_custom.go index 42bdea3f..41e2da2c 100644 --- a/test/testdata/musttag_custom.go +++ b/test/testdata/musttag_custom.go @@ -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) }