Skip to content

CopyCorresponding(to, from): Move field values between structs with fields of same name and type #57

New issue

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

Open
WillianBR opened this issue Mar 18, 2025 · 0 comments

Comments

@WillianBR
Copy link

I find your project a very powerful feature which should be default into GO Lang.

There's one feature which could be implemented and make others life a lot easy. In the past the PC COBOL had a feature called "MOVE CORRESPONDING ...". Which was used to move values between structres fields with the same name. Ignoring the not corresponding.

I guess your package could implement it. Allowing to move field values between structs with fields of same name and type.

Anyway, thank you for your work.

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

No branches or pull requests

1 participant