Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breadcrumb ¶
type ItemList ¶
type ItemList struct { Context string `json:"@context"` Type string `json:"@type"` Elements []ItemListElement `json:"itemListElement"` }
func BreadcrumbList ¶
func BreadcrumbList[T Breadcrumb](urlprefix string, breadcrumbs []T) ItemList
See https://developers.google.com/search/docs/appearance/structured-data/breadcrumb
BreadcrumbList uses generics so we don't have to convert the slice from []SomeType to []Breadcrumb.
Click to show internal directories.
Click to hide internal directories.