Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalXML ¶
MarshalXML marshals struct into XML file
func UnmarshalXML ¶
UnmarshalXML unmarshals XML file into struct
Types ¶
type Sitemap ¶
type Sitemap struct { // XMLName is required. Encapsulates the file and references the current protocol standard. XMLName xml.Name `xml:"urlset"` //Urls is required. Parent tag for each URL entry. The remaining tags are children of this tag. Urls []SitemapURL `xml:"url"` }
Sitemap is the root element of the XML file
type SitemapURL ¶
type SitemapURL struct { // Loc required URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters. Loc string `xml:"loc"` // Lastmod is optional. TODO: implement LastMod string `xml:"lastmod"` // ChangeFreq is optional. TODO: implement ChangeFreq string `xml:"changefreq"` // Priority is optional. TODO: implement Priority string `xml:"priority"` }
SitemapURL is a single URL in a sitemap
Click to show internal directories.
Click to hide internal directories.