Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingredient ¶
type Ingredients ¶
type Ingredients []Ingredient
type InitialUserAttributes ¶
type Recipe ¶
type Recipe struct { Id string `json:"id"` Author string `json:"author"` Image string `json:"image" validate:"url"` URL string `json:"url"` Title string `json:"title" validate:"recipetitle"` Notes string `json:"notes" validate:"recipenotes"` Ingredients Ingredients `json:"ingredients" validate:"existence"` CookTime int `json:"cooktime" validate:"time"` CookTimeUnit string `json:"cooktimeunit" validate:"timeunit"` PrepTime int `json:"preptime" validate:"time"` PrepTimeUnit string `json:"preptimeunit" validate:"timeunit"` Steps Steps `json:"steps" validate:"existence"` Tags Tags `json:"tags"` Private bool `json:"private"` Created time.Time `json:"created"` LastModified time.Time `json:"last_modified"` }
type RicettaValidator ¶
func NewValidator ¶
func NewValidator(config *goconfig.ConfigFile) *RicettaValidator
Click to show internal directories.
Click to hide internal directories.