go-automapper icon indicating copy to clipboard operation
go-automapper copied to clipboard

Allow directly mapping of structs that are of the same type.

Open nphmuller opened this issue 5 years ago • 0 comments

Some structs cannot be mapped by simply traversing the fields, because they simply don't export any. For example time.Time.

This allows these structs to be set by checking if the source and destination type is the same and if they are, set the struct directly.

nphmuller avatar Jul 09 '20 10:07 nphmuller