We have hosted the application mergo in order to run this application in our online workstations with Wine or directly.


Quick description about mergo:

A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements. Mergo merges same-type structs and maps by setting default values in zero-value fields. Mergo won't merge unexported (private) fields. It will do recursively any exported one. It also won't merge structs inside maps (because they are not addressable using Go reflection). Also a lovely comune (municipality) in the Province of Ancona in the Italian region of Marche. Keep in mind that in 0.3.2, Mergo changed Merge()and Map() signatures to support transformers. I added an optional/variadic argument so that it won't break the existing code. You can only merge same-type structs with exported fields initialized as zero value of their type and same-types maps. Mergo won't merge unexported (private) fields but will do recursively any exported one. It won't merge empty structs value as they are zero values too.

Features:
  • Recursive merging of structs and maps
  • Support for struct tags to control merging behavior
  • Support for custom merge functions for specific fields
  • Support for merging private fields
  • Support for merging anonymous fields
  • Support for merging maps with non-string keys


Programming Language: Go.
Categories:
Frameworks, Mapping

Page navigation:

©2024. Winfy. All Rights Reserved.

By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.