At the moment I am unable to copy struct A to struct B.
It does not copy because this check: fromField.Type().AssignableTo(toField.Type()) on line 73 returns false. It is false because fromField type is *string and toField type is string.
Is it possible to copy these two kind of structs?
type A struct {
Title *string
Description *string
Status *bool
}
type B struct {
Title string
Description string
Status bool
}
At the moment I am unable to copy struct A to struct B. It does not copy because this check: fromField.Type().AssignableTo(toField.Type()) on line 73 returns false. It is false because fromField type is *string and toField type is string. Is it possible to copy these two kind of structs?