Skip to content

Allow destination to not have all src fields #12

@rmohr

Description

@rmohr

In order to do mapping from internal objects to different external data transfer objects, it would be nice if we could say that "missing fields" on the destination are not an error.

Currently I get errors like

Field: 'Y', does not exists

For illustration:

type DomainObject struct {
   Name string
   Address string
   Phone string
}

type LoginGreeterDTO struct {
  Name string
}

model.Copy(&loginGreetingDTO, &domainObject )

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions