1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-17 11:26:35 +02:00
This commit is contained in:
eruca 2017-03-11 18:19:39 +08:00 committed by GitHub
parent 9a138f8b6a
commit b986d86f26

@ -165,6 +165,7 @@ func Test_omit_empty(t *testing.T) {
type TestObject struct {
Field1 string `json:"field-1,omitempty"`
Field2 string `json:"field-2,omitempty"`
Field3 string `json:"field-3,omitempty"`
}
obj := TestObject{}
obj.Field2 = "hello"