Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

[interfaces Coper & DeepCopier] Enforce sub structures to implement them #418

Open
andersfylling opened this issue Aug 7, 2021 · 2 comments

Comments

@andersfylling
Copy link
Owner

It's currently troublesome to specify Copier and DeepCopier for every substructure. Write a dependency tree to identify which structs needs the different interfaces instead of requiring var _ Copier = (*Message)(nil)

@andersfylling
Copy link
Owner Author

Maybe all exported types should automatically implement this.

@switchupcb
Copy link

Consider using Copygen for copier functionality without the use of reflection.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants