Documentation
¶
Index ¶
Constants ¶
View Source
const ( RecipeSchemaURL = "http://schema.org/Recipe" NutritionInformationSchemaURL = "http://schema.org/NutritionInformation" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CreativeWork ¶
type NutritionInformation ¶
type NutritionInformation struct {
Calories string `json:"calories"`
FatContent string `json:"fatContent"`
}
NutritionInformation for a recipe.
func ParseNutritionInformation ¶
func ParseNutritionInformation(sel *goquery.Selection) (*NutritionInformation, error)
type Recipe ¶
type Recipe struct {
CreativeWork
CookTime time.Time `json:"cookTime"`
CookingMethod string `json:"cookingMethod"`
Nutrition *NutritionInformation `json:"nutrition"`
PrepTime time.Time `json:"prepTime"`
Category string `json:"recipeCategory"`
Cuisine string `json:"recipeCuisine"`
Ingredients []string `json:"recipeIngredient"`
Instructions string `json:"recipeInstructions"`
Yield string `json:"recipeYield"`
TotalTime time.Time `json:"totalTime"`
}
Recipe for cooking.
Click to show internal directories.
Click to hide internal directories.