Fellow gophers, I'm having this dilemma of whether to embed related struct, or to have an ID field pointing to resource in the DB.
Say I have something like these types defined. type Team struct{ ID string Name string } type Organization struct { ID string Name string } Now my question is which way is better type Team struct{ ID string Name string } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.