github.com/djboris9/merger (go): Package merger can merge different Go types together.  This can be useful for:  Let A be the first arbitrary value and B be the second arbitrary value with precedence.  boolean, numeric and string types will be overwritten by the argument with precedence (B). slice and array types will be concatenated (A ∥ B). struct and map types will be merged together giving a union of all fields, where the values of them are merged too (A ∪ B)  Merging boolean, numeric, string types (overwrite):  Merging map, struct types (union):  Merging slice, array types (concat):  Merging embedded types:
Keywords: data-structures|golang|golang-library|golang-package|map|merge|slice|struct