{"id":13413523,"url":"https://github.com/mingard/sitemap-format","last_synced_at":"2025-03-14T19:32:33.970Z","repository":{"id":59047348,"uuid":"533356380","full_name":"mingard/sitemap-format","owner":"mingard","description":"Simple sitemap formatting, with a little syntactic sugar","archived":false,"fork":false,"pushed_at":"2022-11-16T11:36:27.000Z","size":78,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-31T20:52:32.692Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mingard.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":"2022-09-06T14:14:20.000Z","updated_at":"2024-04-07T14:14:07.000Z","dependencies_parsed_at":"2023-01-23T10:30:23.594Z","dependency_job_id":null,"html_url":"https://github.com/mingard/sitemap-format","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingard%2Fsitemap-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingard%2Fsitemap-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingard%2Fsitemap-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingard%2Fsitemap-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingard","download_url":"https://codeload.github.com/mingard/sitemap-format/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221498766,"owners_count":16833057,"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-07-30T20:01:42.341Z","updated_at":"2024-10-26T05:31:01.787Z","avatar_url":"https://github.com/mingard.png","language":"Go","readme":"# Sitemap Format\n\n![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)\n[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/mingard/sitemap-format)\n[![Go Report Card](https://goreportcard.com/badge/mingard/sitemap-format)](https://goreportcard.com/report/mingard/sitemap-format)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e0330046dd004b99a155ad56031acd9f)](https://www.codacy.com/gh/mingard/sitemap-format/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=mingard/sitemap-format\u0026utm_campaign=Badge_Grade)\n\nSimple sitemap formatting, with a little syntactic sugar.\n\n## Installation\n\n```sh\ngo get github.com/mingard/sitemap-format\n```\n\n## Usage\n\n### Creating a basic Sitemap\n\n```go\npackage main\n\nimport sitemap \"github.com/mingard/sitemap-format\"\n\nfunc main() {\n  xml := sitemap.New()\n\n  loc := sitemap.NewLoc()\n  loc.SetLocation(\"https://domain.com\")\n  xml.Add(loc)\n\n  out, _ := xml.OutputString()\n  fmt.Println(out)\n}\n\n// Output: \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\u003curlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\u003e\u003curl\u003e\u003cloc\u003ehttps://domain.com\u003c/loc\u003e\u003clastmod\u003e2022-11-03T11:56:00.26065Z\u003c/lastmod\u003e\u003c/url\u003e\u003c/urlset\u003e\n```\n","funding_links":[],"categories":["Microsoft Office","Miscellaneous","杂项"],"sub_categories":["Uncategorized","未分类的"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingard%2Fsitemap-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingard%2Fsitemap-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingard%2Fsitemap-format/lists"}