diff --git a/gparser/sitemap.go b/gparser/sitemap.go index 83af8db..f07aa98 100644 --- a/gparser/sitemap.go +++ b/gparser/sitemap.go @@ -16,7 +16,7 @@ type urlset struct { type URL struct { Location string `xml:"loc"` - LastMod time.Time `xml:"lastmod"` + LastMod time.Time `xml:"lastmod,omitempty"` ChangeFreq string `xml:"changefreq"` Priority float32 `xml:"priority"` }