1 2 3 4 5 6 7 8 9 10 11 12 13 14
package models type Preference struct { ID int64 `json:"-"` Color string `json:"color"` UserID int64 `json:"-"` Size Size `json:"size"` } type Size struct { ID int64 `json:"-"` Size int64 `json:"size"` Unit string `json:"unit"` }