The Go package sitemap provides tools for creating XML sitemaps and sitemap indexes and writing them to an io.Writer (such as http.ResponseWriter).
Please see http://www.sitemaps.org/ for description of sitemap contents.
The package implements io.WriterTo and io.ReaderFrom interfaces.
Yes. This is yet another sitemap package for Go. I was not happy with any of the existing packages.
Documentation:
https://godoc.org/github.com/snabb/sitemap
The Git repository is located at: https://github.com/snabb/sitemap
MIT