Documentation ¶
Overview ¶
Package sitemap provides structures and functions for web-site xml-sitemap management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SiteMapIndex ¶
SiteMapIndex creates an .xml index file named indexFile for all .xml.gz sitemap files in folder. Baseurl is a base web url for this folder.
Types ¶
type Frequency ¶
type Frequency int
Frequency represents a web-page refresh rate
Predefined constants for page refresh frequency. The value "always" should be used to describe documents that change each time they are accessed. The value "never" should be used to describe archived URLs. Please note that the value of this tag is considered a hint and not a command.
type Page ¶
Page represents a web-page record in a sitemap file. Loc is an absolute page URL. LastMod is a timestamp of page's last modification. Changefreq is how often page'c content is updated on server. Use constants Always, Hourly,... Never to set this. Priority is an arbitrary decimal number from 0 to 1 (ex: 0.7) that sets an importance priority for a search engine crawler.