ld

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecipeProcessor

type RecipeProcessor struct {
	// contains filtered or unexported fields
}

RecipeProcessor is a json-ld Schema Recipe processor.

func NewRecipeProcessor

func NewRecipeProcessor() *RecipeProcessor

NewRecipeProcessor returns a RecipeProcessor with default settings.

func (*RecipeProcessor) GetRecipeNode

func (rp *RecipeProcessor) GetRecipeNode(doc *goquery.Document) (map[string]any, error)

GetRecipeNode searches doc to find a Schema.org Recipe node encoded in ld+json format. If found, the Recipe is serialized into a map. Individual recipe fields can be accessed in the map using the field names defined in https://schema.org/Recipe.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL