Skip to content

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

Open
nphmuller wants to merge 1 commit intostroiman:masterfrom
nphmuller:map-struct-directly-if-same-type
Open

Allow directly mapping of structs that are of the same type.#6
nphmuller wants to merge 1 commit intostroiman:masterfrom
nphmuller:map-struct-directly-if-same-type

Conversation

@nphmuller
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant