Open freakingawesome opened 5 years ago
This allows for the explicit removal of lastmod, priority, and changefreq XML nodes, rather than setting them to default values.
lastmod
priority
changefreq
Usage:
opts := Options{} opts.SetOmitDefaultLastMod(true) opts.SetOmitDefaultPriority(true) opts.SetOmitDefaultChangeFreq(true)
Since these three fields are largely ignored, this cuts down on the size of the generated XML files.
Reference:
Hi, are there any plans to merge it soon?
This allows for the explicit removal of
lastmod
,priority
, andchangefreq
XML nodes, rather than setting them to default values.Usage:
Since these three fields are largely ignored, this cuts down on the size of the generated XML files.
Reference: