Discover Packages
github.com/Defacto2/df2
lib
sitemap
package
Version:
v1.1.32
Opens a new window with list of versions in this module.
Published: May 12, 2021
License: Apache-2.0
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
Documentation
¶
Package sitemap generates an list of pages of the website.
The generated XML file is stored on the site's root and can be parsed by search engine bots.
Create generates and prints the sitemap.
type URLset struct {
XMLName xml .Name `xml:"urlset,omitempty"`
XMLNS string `xml:"xmlns,attr,omitempty"`
Urls []url `xml:"url,omitempty"`
}
URLset is a sitemap XML template.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.