Versions in this module Expand all Collapse all v1 v1.1.1 Mar 3, 2022 Changes in this version + type ChangeFreq string + const Always + const Daily + const Hourly + const Monthly + const Never + const Weekly + const Yearly + type Sitemap struct + Minify bool + URLs []*URL + XMLName xml.Name + Xmlns string + XmlnsImage string + XmlnsMobile string + XmlnsNews string + XmlnsVideo string + XmlnsXHTML string + func New() *Sitemap + func (s *Sitemap) Add(u *URL) + func (s *Sitemap) ReadFrom(r io.Reader) (n int64, err error) + func (s *Sitemap) WriteTo(w io.Writer) (n int64, err error) + type SitemapIndex struct + Minify bool + URLs []*URL + XMLName xml.Name + Xmlns string + func NewSitemapIndex() *SitemapIndex + func (s *SitemapIndex) Add(u *URL) + func (s *SitemapIndex) ReadFrom(r io.Reader) (n int64, err error) + func (s *SitemapIndex) WriteTo(w io.Writer) (n int64, err error) + type URL struct + ChangeFreq ChangeFreq + LastMod *time.Time + Loc string + Priority float32