Merge will fill any empty for value type attributes on the dst struct using corresponding src attributes if they themselves are not empty. dst and src must be valid same-type structs and dst must be a pointer to struct. It won't merge unexported (private) fields and will do recursively any exported
(dst, src interface{}, opts ...func(*Config))
| 316 | // and dst must be a pointer to struct. |
| 317 | // It won't merge unexported (private) fields and will do recursively any exported field. |
| 318 | func Merge(dst, src interface{}, opts ...func(*Config)) error { |
| 319 | return merge(dst, src, opts...) |
| 320 | } |
| 321 | |
| 322 | // MergeWithOverwrite will do the same as Merge except that non-empty dst attributes will be overridden by |
| 323 | // non-empty src attribute values. |
searching dependent graphs…