A recent task was to compare two json strings and find the field that had been modified.
I converted them into two map[string]interface
data and write a func diff(a, b map[string]interface{}) to find the changed fields.
I'd like PR this func to maputil
later. hope it can help more people who need it.
Owner Name | gookit |
Repo Name | goutil |
Full Name | gookit/goutil |
Language | Go |
Created Date | 2018-07-03 |
Updated Date | 2023-03-22 |
Star Count | 1263 |
Watcher Count | 29 |
Fork Count | 142 |
Issue Count | 3 |