go-rest-demo/pkg/recipes/models.go (8 lines of code) (raw):

package recipes // represents a recipe type Recipe struct { Name string `json:"name"` Ingredients []Ingredient `json:"ingredients"` } // represents individual ingredients type Ingredient struct { Name string `json:"name"` }