Hacker News new | past | comments | ask | show | jobs | submit login

> 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: