Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sitemap ¶
type Sitemap struct { UrlSet UrlSet // contains filtered or unexported fields }
func NewSitemap ¶
func NewSitemap() *Sitemap
NewSitemap creates a new Sitemap the xmlns is defaulted to https://www.sitemaps.org/schemas/sitemap/0.9 you can change it by calling Sitemap.Xmlns Method
func (*Sitemap) GenerateXml ¶
func (*Sitemap) XmlnsImage ¶ added in v1.0.1
type URL ¶
type URLOption ¶
type URLOption func(*URL)
func WithChangeFreq ¶
func WithLastMod ¶
func WithPriority ¶
type UrlImage ¶ added in v1.0.0
type UrlImage struct {
Loc string `xml:"image:loc"`
}
func NewUrlImage ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.