A Go library for generating various types of XML sitemaps with support for search engine pinging and cloud storage.
go-sitemap-generator is a Go library that enables developers to programmatically create XML sitemaps for websites. It solves the problem of manually crafting sitemaps by providing a structured API to generate sitemaps that include various content types like news, video, and images, which helps improve SEO and content indexing by search engines.
Go developers building web applications or services that require automated sitemap generation for SEO purposes, particularly those managing content-heavy sites or needing to notify search engines of updates.
Developers choose this library because it offers a comprehensive, easy-to-use solution for generating multiple sitemap types with built-in features like search engine pinging and cloud storage integration, all within a native Go environment.
go-sitemap-generator is the easiest way to generate Sitemaps in Go
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports news, video, image, geo, and mobile sitemaps with code examples for each, as shown in the README sections, ensuring compliance with search engine standards.
Offers adapters for filesystem and Amazon S3 storage, allowing direct uploads to cloud services, with configuration options for regions and buckets.
Automatically notifies Google and Bing of sitemap updates via PingSearchEngines(), improving SEO without manual intervention.
Provides control over filenames, paths, compression, and concurrency through methods like SetFilename and SetCompress, as detailed in the options section.
The README mentions the S3 adapter was recently disabled in a module, indicating potential instability or breaking changes for cloud storage users.
The 'To-Do' list includes unchecked items like PageMap sitemap, suggesting some advertised capabilities are not yet implemented.
Adding URLs requires nested stm.URL structs with maps, which can be cumbersome for simple sitemaps compared to more streamlined libraries.