[proposal] maputil add func diff(amap, bmap) return difference fields

This issue has been created since 2022-06-16.

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.

More Details About Repo
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

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Maybe I miss something... 2 2021-04-23 2023-03-16
TypeError: Cannot read property 'id' of null 2 2019-11-06 2023-02-12
Old versions have a resource packs page and are missing a texture pack page 2 2022-12-14 2023-02-12
Support a "time spine" aggregation time dimension type 2 2022-10-22 2023-01-13
🤔 Migrate to nuxt.js 1 2022-02-09 2023-02-04
Link in documentation leads to 404 page 1 2021-03-24 2023-01-31
Wrong Props while using ForwardRef 5 2021-08-06 2022-10-17
variant calling for gbk files? 1 2022-09-08 2023-03-15
Compiling using msys2 for windows 1 2020-09-18 2023-01-16
`devtools` installation error? 8 2016-01-27 2023-03-03
Invalid option linkage error for "cleanup!" and "edition=i" 5 2022-02-15 2023-02-27
Jupyter notebook renders with <span class="err"> from online nbviewer 2 2017-07-19 2023-02-22
Expand coverage of push test 0 2022-08-28 2023-03-09
Sir, I would like to ask why my 'starting PHP server' always fails? 5 2022-08-30 2023-03-16
description of OpenDataCam ( 75 words max ) 4 2021-01-07 2023-02-27
completion for bash do not work for not english locale 2 2022-01-10 2023-02-04
Module '"graphql/utilities/printSchema"' has no exported member 'Options' 6 2021-12-10 2023-02-28
Invalid window hint 0x00050002 when using the GLFW_ANGLE_PLATFORM_TYPE enum 2 2021-03-18 2023-02-27
PHP Warning: Module `<module>` already loaded in... 5 2021-06-29 2023-02-26
Using full-text search feature returns syntax error, when the search term having more than 1 word. 2 2021-11-17 2023-02-20
Tests: parse command line arguments from comment on first line 0 2021-12-04 2023-03-10
Better type definitions 3 2022-08-25 2023-02-16
Cannot Erase Personal Data for WordPress users 2 2022-09-29 2023-02-19
Crash on 2.4 on Mac M1 when trying to add new printer/preset 19 2021-12-31 2023-02-24
error whille building on M2 ARM Mac: expression is not assignable ++Py_REFCNT(o) 2 2022-10-21 2023-03-03
Update Health Checking of Istio Services to include gRPC probe 1 2023-03-19 2023-03-22
Issue with "Django Tutorial Part 4: Django admin site": author-detail view contents are wrong 2 2022-01-19 2023-02-09
[Google Cloud Storage] Impossible to set an empty prefix 0 2021-09-21 2023-03-04
[ESI] Implement support for `void` datatype 1 2022-01-27 2023-02-18
Open folder location is delayed when Files is set as the default file manager 12 2022-03-19 2023-02-14
[BUG] Default box header style leaks in tables with show_header=False 4 2021-09-11 2023-03-06
[Event Request] - OnAfterLookupPostCode in Table 224 "Order Address" 1 2022-11-11 2023-02-13
Flutter does not get notified of disconnect - `does not implement -[peripheral:didModifyServices:]` 0 2021-05-18 2023-02-11
first path segment in URL cannot contain colon 9 2017-12-19 2023-03-19
How to debug apollo query initiated in server Side. 1 2022-04-27 2023-02-01
insert and forall in record 2 2018-04-10 2023-03-10
gprecoverseg/gpstate: Report basebackup progress during full recovery 0 2023-02-21 2023-03-08
When the monitored folder is deleted, the app crashes directly 0 2022-11-07 2023-03-12
HdpModel class calls a deprecated function from the time module (Python 3.8.16) 1 2022-12-27 2023-03-09
Documentation search seems to be broken 0 2023-03-16 2023-03-23
Out of space on PyPI again 8 2022-12-19 2023-03-09
Questions about word2vec_model.wv.most_similar 1 2023-03-05 2023-03-23
Which corpus is used as reference for NPMI calculation in Gensim? 2 2023-01-31 2023-03-09
目前最大得问题不是杀后台,而是程序到后台内部线程被冻结 6 2021-09-26 2023-02-15
如何自定义工具栏,添加按钮操作? 1 2021-06-24 2022-01-15
Inconsistencies in Content-Type returned for /readme.txt 2 2022-08-22 2023-02-19
Definition for rule '@shopify/polaris-prefer-sectioned-prop' was not found. 1 2021-10-15 2023-03-11
Undocumented 7.0 APIs in System.Runtime.InteropServices 10 2022-07-18 2023-02-07
Undocumented 7.0 APIs in System.Runtime.Intrinsics 12 2022-07-18 2023-02-22
Module 'connectivity_plus' not found 2 2022-04-01 2023-02-26