- wrap
if src.xx != nil {
for pointer type field- Unsure which is better, automatically or with a nottation specifically.
- tag match
-
:conv:type <_func_> <_src type_> [_to type_]
notation- it allows to specify a converter for type(s).
-
:conv:with <_func_> <_dst field_>
notation- it allows to specify a src-struct-to-field converter.
- copy recursively
- deep copy for slices
- cannot cover all cases, IMHO.
- deep copy for maps
- cannot cover all cases, IMHO.