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 )
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
For illustration: