go-sitemap-generator
go-sitemap-generator copied to clipboard
Can you give an example of creating sitemap indexing file?
Call Finalize()
on *stm.Sitemap
will automatically save the index & sitemap (chunk) file.
And, each chunk file should have < 50M & 50000 entries. If the limit is exceeded, It will automatically save the index & chunk, then add 1 to chunkNum
, as the new chunk name.