script_node

package
v0.0.0-...-a9b0586 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLD

type JSONLD struct {
	PotentialAction PotentialAction `json:"potentialAction"`
}

type PotentialAction

type PotentialAction struct {
	ActionType string `json:"@type"`
	Target     Target `json:"target"`
}

type ScriptNode

type ScriptNode struct {
	NodeTag  string
	NodeType string // type="application/ld+json
	JSONLD   JSONLD
}

func NewScriptNode

func NewScriptNode(tag string) ScriptNode

func (*ScriptNode) FeedURL

func (s *ScriptNode) FeedURL() string

func (*ScriptNode) IsValidFeed

func (s *ScriptNode) IsValidFeed() bool

func (*ScriptNode) ParseFields

func (s *ScriptNode) ParseFields(z *html.Tokenizer)

type Target

type Target struct {
	TargetType  string `json:"@type"`
	UrlTemplate string `json:"urlTemplate"`
}

Jump to

Keyboard shortcuts

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