Please, demonstrate your problem on play.golang.org
https://play.golang.org/p/uQRV4sjNM5k something like that, if that makes sense
https://play.golang.org/p/ioGX6uac7U6
userB doesn't need Age field of user, and in real world structs tend to have 10+ fields
https://play.golang.org/p/Jko_VoeXW22
this is obviously wrong, you don’t want fields of type A to be part of type B and vice-versa
https://play.golang.org/p/ImuNO0vmta2 why not this way?
Обсуждают сегодня