fix: json tag omitempty convert error (#218)

This commit is contained in:
chentong authored and GitHub committed 2024-05-14 10:08:56 +08:00
1 parent 53fa210f09
commit f0235c40b6
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -485,7 +485,7 @@ func TestMapToStruct(t *testing.T) {
Name string `json:"name"`
Age int `json:"age"`
Phone string `json:"phone"`
Addr *Address `json:"address"`
Addr *Address `json:"address,omitempty"`
}
Address struct {