We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61db398 commit f5dd31cCopy full SHA for f5dd31c
pkg/analysis/jsontags/testdata/src/a/a.go
@@ -18,7 +18,12 @@ type JSONTagTestStruct struct {
18
JSONTagWithID string `json:"jsonTagWithID"`
19
JSONTagWithTTL string `json:"jsonTagWithTTL"`
20
JSONTagWithGiB string `json:"jsonTagWithGiB"`
21
- IgnoreTag string `json:"-"`
+ Ignored string `json:"-"`
22
+
23
+ IgnoredAnonymousStruct struct {
24
+ // This field should be ignored since the parent field is ignored.
25
+ A string `json:""`
26
+ } `json:"-"`
27
28
A `json:",inline"`
29
B `json:"bar,omitempty"`
0 commit comments