ikeikeikeike / go-sitemap-generator

go-sitemap-generator is the easiest way to generate Sitemaps in Go
https://github.com/ikeikeikeike/go-sitemap-generator
MIT License
218 stars 65 forks source link

Can you give an example of creating sitemap indexing file? #17

Open dengliu opened 6 years ago

boxsnake commented 5 years ago

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.