Versions in this module Expand all Collapse all v1 v1.3.1 Dec 4, 2024 Changes in this version + type ChangeFreq string + const Always + const Daily + const Hourly + const Monthly + const Never + const Weekly + const Yearly + type Options struct + Compress bool + Hostname string + Name string + OutputPath string + type Sitemap struct + NextSitemap *Sitemap + SitemapIndexLoc *SitemapIndexLoc + func NewSitemap(prettyPrint bool) *Sitemap + func (s *Sitemap) Add(u *SitemapLoc) error + func (s *Sitemap) Finalize() + func (s *Sitemap) GetURLsCount() int + func (s *Sitemap) Save() (filenames []string, err error) + func (s *Sitemap) SetCompress(compress bool) + func (s *Sitemap) SetHostname(hostname string) + func (s *Sitemap) SetLastMod(lastMod *time.Time) + func (s *Sitemap) SetMaxURLsCount(maxURLsCount int) + func (s *Sitemap) SetName(name string) + func (s *Sitemap) SetOutputPath(outputPath string) + func (s *Sitemap) WriteTo(w io.Writer) (n int64, err error) + type SitemapAlternateLoc struct + Href string + Hreflang string + Rel string + type SitemapImage struct + ImageLoc string + type SitemapIndex struct + ServerURI string + SitemapLocs []*SitemapIndexLoc + Sitemaps []*Sitemap + XMLName xml.Name + Xmlns string + func NewSitemapIndex(prettyPrint bool) *SitemapIndex + func (s *SitemapIndex) Add(u *SitemapIndexLoc) + func (s *SitemapIndex) AppendSitemap(sm *Sitemap) + func (s *SitemapIndex) NewSitemap() *Sitemap + func (s *SitemapIndex) PingSearchEngines(pingURLs ...string) error + func (s *SitemapIndex) Save() (string, error) + func (s *SitemapIndex) SetCompress(compress bool) + func (s *SitemapIndex) SetHostname(hostname string) + func (s *SitemapIndex) SetOutputPath(outputPath string) + func (s *SitemapIndex) SetServerURI(serverURI string) + func (s *SitemapIndex) SetSitemapIndexName(name string) + func (s *SitemapIndex) WriteTo(writer io.Writer) (int64, error) + type SitemapIndexLoc struct + LastMod *time.Time + Loc string + XMLName xml.Name + type SitemapLoc struct + Alternate []*SitemapAlternateLoc + ChangeFreq ChangeFreq + Images []*SitemapImage + LastMod *time.Time + Loc string + Priority float32 + XMLName xml.Name