Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeURL ¶
NormalizeURL standardizes a URL for comparison and storage It lowercases the scheme and host, removes default ports (80 for http, 443 for https), removes trailing slashes from paths (unless root "/"), ensures empty path becomes "/", and removes fragments and query strings Does not modify the input *url.URL
func ParseAndNormalize ¶
ParseAndNormalize parses a URL string using the stricter url.ParseRequestURI (requiring a scheme) and then normalizes it using NormalizeURL Returns the normalized string, the parsed URL object, and any parse error
Types ¶
type XMLSitemap ¶
XMLSitemap represents a <sitemap> element in a sitemap index file
type XMLSitemapIndex ¶
type XMLSitemapIndex struct {
XMLName xml.Name `xml:"sitemapindex"`
Sitemaps []XMLSitemap `xml:"sitemap"`
}
XMLSitemapIndex represents a <sitemapindex> element
Click to show internal directories.
Click to hide internal directories.