Releases: darccio/mergo
Releases · darccio/mergo
Updated dependencies, documentation and code of conduct
Merge pull request #42 from imdario/add-code-of-conduct-1 Create CODE_OF_CONDUCT.md
Bug fixes
Important release: Merge fixed!
Mergo is intended to assign only zero value fields on destination with source value. Since April 6th it works like this. Before it didn't work properly, causing some random overwrites. After some issues and PRs I found it didn't merge as I designed it. Thanks to imdario/mergo#8 overwriting functions were added and the wrong behavior was clearly detected.
If you were using Mergo before April 6th 2015, please check your project works as intended after updating your local copy with go get -u github.com/imdario/mergo
. I apologize for any issue caused by its previous behavior and any future bug that Mergo could cause (I hope it won't!) in existing projects after the change (release 0.2.0).
0.1.4
0.1.3: Issue #1 fixed.
It only required to check if src has kind reflect.Ptr. Iff it has this kind, it dereferences src calling Elem() on it.