1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-17 18:44:50 +02:00

Add test for json tag on embedded field

This commit is contained in:
Tim Hockin 2017-06-29 21:28:24 -07:00
parent 9ec64591b6
commit c1411e0ad5

View File

@ -1,5 +1,9 @@
package test
type E struct {
E1 string
}
type T struct {
F1 string `json:"F1"`
F2 string `json:"f2"`
@ -7,4 +11,5 @@ type T struct {
F4 string `json:"-,"`
F5 string `json:","`
F6 string `json:""`
E `json:"e"`
}