go-automapper
go-automapper copied to clipboard
Allow directly mapping of structs that are of the same type.
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.