package
Version:
v0.11.2
Opens a new window with list of versions in this module.
Published: Dec 19, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
SitemapLastModFormat = "2006-01-02"
)
Sitemap builds and serves a sitemap.
New creates a new sitemap.
Serve adds a handler to server the sitemap.
Set sets a page in the sitemap.
Update updates the sitemap content.
type URL struct {
XMLName xml.Name `xml:"url"`
Loc string `xml:"loc"`
Lastmod string `xml:"lastmod"`
Changefreq string `xml:"changefreq,omitempty"`
Priority string `xml:"priority,omitempty"`
}
URL is a single entry inside a URLSet.
type URLSet struct {
XMLName xml.Name `xml:"urlset"`
XMLNS string `xml:"xmlns,attr"`
URLs []URL
}
URLSet is a set of urls for the sitemap.xml.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.