Open mdsohelmia opened 2 years ago
type User struct { FirstName string LastName string Address AddressSliceWrapper } type Address struct { IsMailing bool } type Addresses []Address
// AddressSliceWrapper embeds the alias type for the sake of embedding a slice. // This is very heavy-handed.
type AddressSliceWrapper struct { Addresses }
// AddressSliceWrapper embeds the alias type for the sake of embedding a slice. // This is very heavy-handed.