2 ms·
> Go doesn't have an easy way to bulk-copy fields from one struct to another FYI, In Go you can embed one struct in another and the embedded fields are accessi
by irq-1 4y ago
> Go doesn't have an easy way to bulk-copy fields from one struct to another
FYI, In Go you can embed one struct in another and the embedded fields are accessible from the top/parent struct.
https://go.dev/doc/effective_go#embedding https://go.dev/doc/effective_go#embedding