Documentation ¶
Overview ¶
Package sitemapparser provides functionality to parse XML sitemaps and extract URLs. It supports both regular sitemaps and sitemap index files with concurrent processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractURLs ¶
ExtractURLs processes a sitemap URL and returns all URLs found It handles both sitemap index files and regular sitemaps For sitemap index files, it processes all sub-sitemaps concurrently
Types ¶
type Sitemap ¶
type Sitemap struct {
Loc string `xml:"loc"` // URL location of the sitemap
}
Sitemap represents a single sitemap entry within a sitemap index
type SitemapIndex ¶
type SitemapIndex struct { XMLName xml.Name `xml:"sitemapindex"` Sitemaps []Sitemap `xml:"sitemap"` }
SitemapIndex represents the XML structure of a sitemap index file that contains references to other sitemap files
Click to show internal directories.
Click to hide internal directories.