mirror of
https://github.com/json-iterator/go.git
synced 2025-04-26 11:42:56 +02:00
Add test for json tag on embedded field
This commit is contained in:
parent
9ec64591b6
commit
c1411e0ad5
@ -1,5 +1,9 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
|
type E struct {
|
||||||
|
E1 string
|
||||||
|
}
|
||||||
|
|
||||||
type T struct {
|
type T struct {
|
||||||
F1 string `json:"F1"`
|
F1 string `json:"F1"`
|
||||||
F2 string `json:"f2"`
|
F2 string `json:"f2"`
|
||||||
@ -7,4 +11,5 @@ type T struct {
|
|||||||
F4 string `json:"-,"`
|
F4 string `json:"-,"`
|
||||||
F5 string `json:","`
|
F5 string `json:","`
|
||||||
F6 string `json:""`
|
F6 string `json:""`
|
||||||
|
E `json:"e"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user