mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-10 15:52:27 +08:00
fix: json tag omitempty convert error (#218)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user