parsers

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SiteMap

type SiteMap struct {
	XMLName xml.Name     `xml:"urlset"`
	URLSet  []SiteMapURL `xml:"url"`
}

type SiteMapParser

type SiteMapParser interface {
	Parse(xmlBytes []byte) (*SiteMap, error)
}

func NewSiteMapParser

func NewSiteMapParser() SiteMapParser

type SiteMapURL

type SiteMapURL struct {
	XMLName  xml.Name `xml:"url"`
	Location string   `xml:"loc"`
	Ignore   bool     `xml:"ignore"`
}

Jump to

Keyboard shortcuts

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