disgord icon indicating copy to clipboard operation
disgord copied to clipboard

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

Open andersfylling opened this issue 3 years ago • 2 comments

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 avatar Aug 07 '21 11:08 andersfylling

Maybe all exported types should automatically implement this.

andersfylling avatar Jan 04 '22 00:01 andersfylling

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

switchupcb avatar Jul 27 '22 13:07 switchupcb