Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow omission of url defaults #33

Conversation

@freakingawesome
Copy link

freakingawesome commented Sep 13, 2019

This allows for the explicit removal of lastmod, priority, and changefreq XML nodes, rather than setting them to default values.

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:

This allows the explicit removal of lastmod, priority, and changefreq
nodes, rather than setting them to defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.