We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type structSameName1 struct { A string B int64 C time.Time } type structSameName2 struct { A string B time.Time C int64 } obj1 := structSameName1{A: "123", B: 2, C: time.Now()} obj2 := &structSameName2{} err := copier.Copy(obj2, &obj1) t.Log(err)
It will raise an error panic: reflect: call of reflect.Value.FieldByName on int64 Value
panic: reflect: call of reflect.Value.FieldByName on int64 Value
The text was updated successfully, but these errors were encountered:
Should been fixed, thank you for your report.
Sorry, something went wrong.
No branches or pull requests
It will raise an error
panic: reflect: call of reflect.Value.FieldByName on int64 Value
The text was updated successfully, but these errors were encountered: