{"id":18951038,"url":"https://github.com/moonwalker/sitemapgen","last_synced_at":"2026-03-28T17:30:16.508Z","repository":{"id":57499535,"uuid":"104884284","full_name":"moonwalker/sitemapgen","owner":"moonwalker","description":"Go library for generating sitemaps","archived":false,"fork":false,"pushed_at":"2017-10-10T13:08:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-01T02:18:41.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moonwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-26T12:53:04.000Z","updated_at":"2017-10-05T11:08:49.000Z","dependencies_parsed_at":"2022-08-28T15:22:27.621Z","dependency_job_id":null,"html_url":"https://github.com/moonwalker/sitemapgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fsitemapgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fsitemapgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fsitemapgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwalker%2Fsitemapgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonwalker","download_url":"https://codeload.github.com/moonwalker/sitemapgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239950278,"owners_count":19723643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:26:04.685Z","updated_at":"2026-03-28T17:30:16.417Z","avatar_url":"https://github.com/moonwalker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitemapgen\nsitemapgen is a Go library to easy generate sitemap.xml files that follows to [sitemap protocol]\n\nsitemapgen also supports localization urls following the xhtml specification. Read more on [google sitemap alternate language]\n\n# Usage\n```go\nimport (\n    \"fmt\"\n    \"github.com/moonwalker/sitemapgen\"\n)\n// Create sitemap object to work with\nsitemap := sitemapgen.CreateSitemap()\n\n// Create url for an location\nu := sitemapgen.CreateUrl(\"http://example.example/slug\")\n\n// Sets the changefreq for the url\nu.SetChangeFreq(sitemapgen.WEEKLY)\n\n// Add url to sitemap\nsitemap.AddUrl(u)\n\n// Write sitemap to file\nerr := sitemap.WriteToFile(\"sitemap.xml\")\nif err != nil {\n    fmt.Printf(\"Error creating sitemap: %v\\n\", err)\n}\n```\n\n [sitemap protocol]: \u003chttps://www.sitemaps.org/protocol.html\u003e\n [google sitemap alternate language]: https://support.google.com/webmasters/answer/2620865?hl=en","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwalker%2Fsitemapgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonwalker%2Fsitemapgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwalker%2Fsitemapgen/lists"}